What’s that?
dprj is an algorithm that extracts sounds from words. It’s similar to metaphone, except it’s targeted at the french language only. While double metaphone or similar can be ok to regroup content that sound more or less the same, it becomes unusable when you want to get the real pronunciation of a word, since it’s mainly targeted at english. And we all know french can be really tricky sometimes.
How to use it?
Install it from PyPI:
pip install dprj
Then just use the say function:
>> from dprj import say
>> say(u'chaussette')
u'xst'
>> say(u'psychologue')
u'psklg'
>> say(u'agglomération')
u'glmrsn'
>> say(u'accès')
u'ks'
How reliable is it?
Well, try it and see for yourself! There are still some cases to handle:
some plurals
some silent final letters (eg. ‘r’)
french weirdnesses
If you get incorrect results for any word please let me know by filing and issue.
Metadata
Release files for dprj 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dprj-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for dprj-0.1.0.tar.gz |
Release files / dprj-0.1.0.tar.gz
| Download URL | dprj-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89757f93ac3c54bce6fdc4a3b7077ead5ba9b3f452bd4c7c21f8c0c934d1637b
|
|
BLAKE2b-256 checksum How to use checksums |
eddd431c5bce0d45db306bc239eb10514b3910fe2950a2684f4e8d63b82cd3ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dprj 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.