## About
It's an effective implementation of phonetic Polyphon algorithm.
Original paper: [«Polyphon: An Algorithm for Phonetic String Matching in Russian Language»](https://www.researchgate.net/publication/307477428_Polyphon_An_Algorithm_for_Phonetic_String_Matching_in_Russian_Language).
Authors: Viacheslav V. Paramonov, Alexey O. Shigarov, Gennagy M. Ruzhnikov, Polina V. Belykh.
> We propose a new phonetic algorithm to string matching in Russian language without transliteration from Cyrillic to Latin characters. It is based on the rules of sounds formation in Russian language.
## Usage
Add the dependency:
```shell
$ pip install polyphon
```
And then use:
```python
from polyphon import encode
print(encode("литие")) # лата
```
**Note:** `encode` works on a single word and removes any non-Russian characters (including spaces). If you want to encode multiple words, split them first and encode each separately.
#### This is a wrapper of Rust implementation. The repo is [here](https://github.com/Krokochik/polyphon-rs/).