Metaphone
A Python implementation of the metaphone and double metaphone algorithms.
Decision gist · record as of 2026-08-14
Yes, if you need phonetic matching and can accept a dormant package. The algorithm is stable and well-tested, with no known vulnerabilities and permissive licensing. However, verify compatibility with your Python version first—requires_python is unspecified, and the last release was 2016-08-24. The high install friction and lack of recent maintenance are minor concerns for a mature, single-purpose library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- requires_python is unspecified; verify compatibility with your Python version before installing
- High install friction due to source-only distribution.
- Package is dormant—last release was 2016-08-24, with no commits since 2024-02-28.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions. No licensing barrier to adoption.
last release 2016-08-24 (3642 days) · last repo commit 2024-02-28 · 85 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 272,666 downloads/mo, #8,206 on PyPI
Alternatives
Verify before relying
from metaphone import doublemetaphone
result = doublemetaphone("architect")
print(result) # (u"ARKTKT", u"")- Whether the package works correctly on modern Python versions (requires_python is unspecified)
- Whether the source distribution builds without issues on current systems
- Performance characteristics and scalability for large datasets
What it is and what it does
Metaphone is a Python implementation of two phonetic encoding algorithms: the original Metaphone and Double Metaphone. Both produce approximate phonetic codes for English words and names to handle pronunciation variation and misspellings. Double Metaphone can return both primary and secondary codes to account for ambiguous cases and surname variants. For example, "Smith" encodes to SM0 and XMT while "Schmidt" encodes to XMT and SMT, sharing a common code.
The package has no runtime dependencies and is straightforward to use—import the algorithm function and pass a string to get back encoded phonetic codes. It's designed for applications like name matching in databases, full-text search, and handling user input with spelling variations. The implementation accounts for irregularities in English of Slavic, Germanic, Celtic, Greek, French, Italian, Spanish, Chinese, and other origins.
Use it for
- Match user-entered names against a database by comparing their phonetic codes instead of exact strings
- Improve search results by finding words that sound similar despite different spellings
- Deduplicate records in a dataset where names may be misspelled or spelled phonetically
- Build a full-text search system that tolerates pronunciation-based variations in queries
- Handle names from multiple language origins with a single encoding approach
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need phonetic matching and can accept a dormant package.
The algorithm is stable and well-tested, with no known vulnerabilities and permissive licensing. However, verify compatibility with your Python version first—requires_python is unspecified, and the last release was 2016-08-24. The high install friction and lack of recent maintenance are minor concerns for a mature, single-purpose library.
Install
metaphone on PyPI
Before you install
High install friction due to source-only distribution. Package is dormant—last release was 2016-08-24, with no commits since 2024-02-28. No runtime dependencies, but the age and inactivity suggest limited ongoing maintenance.
requires_python is unspecified; verify compatibility with your Python version before installing
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions. No licensing barrier to adoption.
Quickstart
from metaphone import doublemetaphone
result = doublemetaphone("architect")
print(result) # (u"ARKTKT", u"")
Verify before relying
- Whether the package works correctly on modern Python versions (requires_python is unspecified)
- Whether the source distribution builds without issues on current systems
- Performance characteristics and scalability for large datasets
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 3,642 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 272,666 / month, #8,206 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: Metaphone-0.6.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “phonetic encoding”
- MetaphoneImplements the Metaphone and Double Metaphone phonetic encoding…
- pyphoneticsPyphonetics implements phonetic matching algorithms (Soundex,…
- panphonPanPhon maps International Phonetic Alphabet (IPA) segments to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Linguistic packages
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
tiktoken is a fast BPE tokenizer that converts text into token sequences compatible with OpenAI models, supporting multiple encoding schemes including o200k_base and model-specific encodings.
Install it if you work with OpenAI APIs or need to understand token boundaries in GPT-family models.
Detects character encoding and language in byte sequences with high accuracy, supporting 99 encodings and returning confidence scores, language tags, and MIME types.
Install it if you need to detect character encoding or language in byte data; the rewrite makes it substantially faster and more accurate than its predecessors.
Converts Unicode text to ASCII by transliterating non-ASCII characters into their closest ASCII equivalents, with no runtime dependencies.
However, if transliteration quality or ongoing maintenance matters, consider unidecode instead despite its GPL-only license.
Lark is a parsing library that builds abstract syntax trees from context-free grammars, supporting multiple parsing algorithms (Earley, LALR(1), CYK) with automatic line and column tracking.
Python bindings to the tree-sitter parsing library, enabling incremental parsing and syntax tree analysis for source code.
See also phonetics · pyphonetics · soundex · pysimstring · pronouncing · textdistance · pyuca · pyspellchecker · phonemizer · phonemizer-fork