jaro_winkler
Version, currently 0.12 versions
- 0.2latestSep 17, 2019
- 0.1not indexedSep 17, 2019
github.com/kostya/jaro_winkler
Crystal implementation of Jaro-Winkler distance algorithm which supports UTF-8 string
6 stars
2 dependents
License: MIT
Nothing has been indexed for 0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
jaro_winkler:
github: kostya/jaro_winkler
version: ~> 0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# JaroWinkler
Crystal implementation of Jaro-Winkler distance algorithm which supports UTF-8 string. Translated from ruby: https://github.com/tonytonyjan/jaro_winkler
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
jaro_winkler:
github: kostya/jaro_winkler
```
## Usage
```crystal
require "jaro_winkler"
p JaroWinkler.new.distance "MARTHA", "MARHTA"
# => 0.961111
p JaroWinkler.new(ignore_case: true).distance "MARTHA", "marhta"
# => 0.961111
p JaroWinkler.new(weight: 0.2).distance "MARTHA", "MARHTA"
# => 0.977778
p JaroWinkler.new(adj_table: true).distance "month15", "m0nth1S"
# => 0.854286
```
## Benchmark
```
Ruby C Ext: 2.44s
Crystal: 2.95s
Ruby Pure: 60.52s
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1- Tagged
- Sep 17, 2019
- Commit
726cd24a45a4- Indexed
- not yet
Dependents
Repository
github.com/kostya/jaro_winkler
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 2