Skip to main content

Wltr Phonetics

PyPI

Build Status

WltrPhonetics é uma biblioteca Python para algoritmos fonéticos. Os seguintes algoritmos estão disponíveis:

  • Soundex
  • Metaphone
  • Refined Soundex
  • Fuzzy Soundex
  • Lein
  • Matching Rating Approach

Além disso, as seguintes métricas de distância:

  • Hamming
  • Levenshtein

Autor

👤 Walter Avelino

📝 Licença

Copyright © 2020 Walter Avelino.
Os projetos estão sob a licença MIT.

Instalação

O módulo está disponível no PyPI, basta instalar pelo pip pip install wltr-phonetics.

Utilização

>>> from wltr_phonetics import Soundex
>>> soundex = Soundex()
>>> soundex.phonetics('Walter')
'W436'
>>> soundex.phonetics('Waltie')
'W430'
>>> soundex.sounds_like('Walter', 'Waltie')
False

A mesma API se aplica a todos os algoritmos, por exemplo:

>>> from wltr_phonetics import Metaphone
>>> metaphone = Metaphone()
>>> metaphone.phonetics('discriminação')
'TSKRMNK'

Você também pode usar o método distance(word1, word2, metric='levenshtein') para encontrar a distância entre 2 representações fonéticas.

>>> from wltr_phonetics import RefinedSoundex
>>> rs = RefinedSoundex()
>>> rs.distance('Walter', 'Waltie')
1
>>> rs.distance('assign', 'assist', metric='hamming')
2

Créditos

O módulo foi amplamente baseado na implementação de algoritmos fonéticos encontrados em Talisman.js "Node NLP library".

Metadata

Release files for wltr-phonetics 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wltr-phonetics 1.0.2
File Size Uploaded Provenance Actions
wltr-phonetics-1.0.2.tar.gz 8.4 kB Without provenance Details for wltr-phonetics-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wltr-phonetics 1.0.2
File Interpreter ABI Platform Actions
wltr_phonetics-1.0.2-py3-none-any.whl Python 3 none any Details for wltr_phonetics-1.0.2-py3-none-any.whl

Total release size: 20.8 kB

Release files / wltr-phonetics-1.0.2.tar.gz

Download URL wltr-phonetics-1.0.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
51467a63a1bca417d269100afa21f3614e1900ecdea3ec2ef66dd3e108366317
BLAKE2b-256 checksum
How to use checksums
a07b48ff8c55490f1f5e64dea1a66e08fdede6130ddbbdea7c5c94796c3d8eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / wltr_phonetics-1.0.2-py3-none-any.whl

Download URL wltr_phonetics-1.0.2-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ea0ddeaf723fa9905d46ac23bb64a6410582a7406978e9afa989dbf0ef8f00d
BLAKE2b-256 checksum
How to use checksums
0165eb77adac878e492bcef9660d65bdcbf7cf39af5ea9b614533de71f08f058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for wltr-phonetics 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page