Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

editex

Go implementation of Editex (Zobel & Dart, SIGIR 1996): Levenshtein distance with phonetic letter groups. Built for Watchman token scoring.

import "github.com/PhonoGrams/editex"

editex.Similarity("Niall", "Neil")     // 0.80
editex.Distance("nelson", "neilsen")   // 2

Same-group substitutions (bp, ckq, dt, aeiouy, …) cost 1; other substitutions cost 2. Similarity is 1 - dist / (2 * max(len)).

References

  • Zobel & Dart, Phonetic string matching: Lessons from information retrieval, SIGIR 1996
  • Watchman: moov-io/watchman#879

License

Apache License 2.0

About

Editex: phonetic letter-group edit distance (Zobel & Dart 1996) for Watchman / OFAC

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages