confusables
A python package providing functionality for matching words that can be confused for eachother, but contain different characters
Decision gist · record as of 2026-08-14
Yes, if you need homograph detection or character normalization for security or text processing. The package is lightweight, dependency-free, and stable for its core use case. However, maintenance is dormant (last release 2021-03-24), so expect no updates; verify that Unicode version 8.0.0 is current enough for your threat model or data requirements before relying on it for security-critical applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is dormant—last release was 2021-03-24 and last commit 2023-11-11—so expect no active bug fixes or updates, though the package remains stable for its core use case.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
last release 2021-03-24 (1969 days) · last repo commit 2023-11-11 · 64 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 567,316 downloads/mo, #5,969 on PyPI
Alternatives
Verify before relying
pip install confusables
from confusables import is_confusable
print(is_confusable('rover', 'Ʀỏ𝕍3ℛ')) # True- Whether the Unicode confusables data (version 8.0.0) is current enough for modern security or text-processing use cases.
- Performance characteristics when processing large volumes of text or checking many character combinations.
- Compatibility with Python versions beyond 3 (requires_python is unspecified in the fact sheet).
What it is and what it does
Confusables is a text analysis library that identifies and matches words that look the same to humans but are spelled with different Unicode characters. It leverages the official Unicode confusables list to detect homographs—characters that resemble each other across different scripts and symbol sets (e.g., Latin 'o' vs. Cyrillic 'о'). The package provides four main functions: `is_confusable()` to test if two strings are visually similar, `confusable_characters()` to list all characters that resemble a given character, `confusable_regex()` to generate patterns matching confusable variants, and `normalize()` to convert confusable characters back to ASCII equivalents.
It's designed for security and text-processing scenarios where detecting character substitution matters: finding malicious domain names that mimic legitimate ones, normalizing user input to prevent filter evasion, or analyzing text data where character variation is a concern. The package has no external dependencies and installs as a pure Python wheel, making it lightweight and portable.
Use it for
- Detect homograph attacks: identify fake domain names or usernames that use lookalike Unicode characters to impersonate legitimate ones.
- Normalize user-generated text: convert confusable characters to their ASCII equivalents for consistent storage or comparison.
- Bypass-attempt detection: find attempts to circumvent profanity filters or content policies by substituting visually similar characters.
- Text data cleaning: standardize international or mixed-script input to a canonical form for analysis or indexing.
- Security auditing: scan for domain registrations or usernames that could confuse users through visual similarity.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need homograph detection or character normalization for security or text processing.
The package is lightweight, dependency-free, and stable for its core use case. However, maintenance is dormant (last release 2021-03-24), so expect no updates; verify that Unicode version 8.0.0 is current enough for your threat model or data requirements before relying on it for security-critical applications.
Install
confusables on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is dormant—last release was 2021-03-24 and last commit 2023-11-11—so expect no active bug fixes or updates, though the package remains stable for its core use case.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
Quickstart
pip install confusables
from confusables import is_confusable
print(is_confusable('rover', 'Ʀỏ𝕍3ℛ')) # True
Verify before relying
- Whether the Unicode confusables data (version 8.0.0) is current enough for modern security or text-processing use cases.
- Performance characteristics when processing large volumes of text or checking many character combinations.
- Compatibility with Python versions beyond 3 (requires_python is unspecified in the fact sheet).
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,969 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 567,316 / month, #5,969 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: confusables-1.2.0-py3-none-any.whl
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 › “confusable character matching”
- confusablesDetects and matches words that appear identical but use different…
- confusable-homoglyphsDetects Unicode homoglyphs and mixed-script strings that could be…
- matchMaps tokenized words and phrases back to their character offsets in…
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 confusable-homoglyphs · match · normality · graphemeu · grapheme · anyascii · pyunormalize · Unidecode · unicode-segmentation-rs · better-profanity