Skip to main content

Phonex algorithm for python3

Project description

phonex

Algorithme phonex pour python3

Installation

pip install phonex

Usage

La fonction phonex retourne un nombre qui correspond à la prononciation d'un mot en français.

>>> from phonex import phonex
>>> phonex('Dupont')
0.7638993238166792
>>> phonex('Dupond')
0.7638993238166792
>>> phonex('Clairac')
0.47921338864425217
>>> phonex('Clairaque')
0.47921339555074816

Crédits

Phonex est un algorithme de Soundex plus perfectionné [...] que la version francisée de Soundex2. Sachez que Phonex est optimisée pour le langage français, sait reconnaître différents types de sons comme les sons ‘on’, ‘ai’, ‘ein’, etc... et place son résultat sous la forme d’un réel de type double précision (5.0 x 10-324 .. 1.7 x 10308 sur 15 à 16 chiffres significatifs). Son temps de calcul est double de Soundex et 30% supérieure seulement à Soundex2.

Voir la version originale.

Algorithme Phonex Copyright Frédéric BROUARD (31/3/99)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phonex-0.0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

phonex-0.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page