Skip to content
/ aphone Public

Reading aspell phonetics rules and dump them as JSON.

Notifications You must be signed in to change notification settings

athoune/aphone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aphone

Reading Aspell grammar format and exposing the result as a plain JSON. Now you can implement your automat with any language, any variants.

Soon, a Java Lucene Filter, python, cython, ruby, javascript…

Install

From pypi:

sudo pip install aphone

Or from source:

python setup.py build
sudo python setup.py install

Usage

Download a dictionnary from Aspell or find it in your Linux. In Ubuntu, they are in /usr/lib/aspell/ folder.

On OSX, macbrew will do the job:

brew install aspell --with-lang-fr

Now, you are looking a file like fr.dat if you are looking for fr dictionnary.

aphone path/to/fr.dat

It will print phonetic rules as a json.

You can test one word:

aphone path/to/fr.dat carotte

It answers

KAROTE

Licence

It's a tool which generate JSON for other tools, why not GPL like GCC?

GPL v3.

About

Reading aspell phonetics rules and dump them as JSON.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages