Skip to content

lingz/pyphone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

719fbf5 · Apr 21, 2018

History

7 Commits
Apr 21, 2018
Apr 21, 2018
Oct 16, 2017
Apr 21, 2018
Apr 21, 2018
Apr 21, 2018
Apr 21, 2018

Repository files navigation

Phonetic Distance Metric

pip install pyphone

Simple library that will give you the phonetic distance between two phones, represented as IPA unicode.

You can find the full mapping of accepted symbols in data.py

>>> from phonetic_distance import distance
>>> distance('m', 'n')
0.26086956521739135
>>> distance('b', 'p')
0.04347826086956522
>>> distance('e', 'i')
0.058823529411764705
>>> distance('a', 'e')
0.11764705882352941
>>> distance('f', 'v')
0.04347826086956522
>>> distance('p', 'k')
0.3478260869565218

About

Python Phonetic Tools and Distance Metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages