jaro_winkler
Version, currently 0.22 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
Installation
# Add this to your shard.yml
dependencies:
jaro_winkler:
github: kostya/jaro_winkler
version: ~> 0.2Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Konstantin Makarchev <kostya27@gmail.com>
Dependencies
This version declares no dependencies.
README
# 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.2- Tagged
- Sep 17, 2019
- Commit
6b54a54635e9- Indexed
- yes
Dependents
Repository
github.com/kostya/jaro_winkler
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 2