phonetisch

Python implementation of phonetisch algorithms e.g. soundex and Cologne phonetics which are phonetic algorithms for English and German. The homophones are encoded to the same representation so that they can be matched despite minor differences in spellings.


Keywords
algorithms, deutsch, english, machine-learning, phonetic-algorithms, sounds
License
MIT
Install
pip install phonetisch==0.2.2

Documentation

phonetisch

Build Status PyPI version

Phonetic algorithms library in python focusing of multiple languages.

Key features

  • Implementation of Soundex and Caverphone.
  • Simple to use.
  • Support multiple languages.
  • Supports Python 3.4+.

Installation

Use pip to install the lastest version:

pip install phonetisch

Usage Examples

from phonetisch import soundex, caverphone

first_code = soundex.encode_word('Example')
second_code = soundex.encode_word('Ekzampul')

if first_code == second_code:
  print('Both words are homophones')
  
print(caverphone.encode_word("Thompson"))

Reference

https://en.wikipedia.org/wiki/Soundex

Links

License

MIT License

Contributers