Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 712 Bytes

README.md

File metadata and controls

43 lines (25 loc) · 712 Bytes

FonetiPy

FonetiPy implements the BuscaBR algorithm in Python to match misspelled or ambiguous words at Brazil. It's fully inspired at Ruby Fonetica

Install:

Install via PIP tool:

pip install fonetipy

Usage:

A simple usage is:

from fonetipy import FonetiPy

search = FonetiPy()

search('wagner batista')  # show "VM BT"
search('vagner baptista')  # show "VM BT"

You can also use a shortcut fonetipy

from fonetipy import fonetipy

fonetipy('Wagner batista')  # show "VM BT"
fonetipy('Vagner baptista')  # show "VM BT"

Tests:

Just run:

python fonetipy_test.py

The verbose mode is active by default.