deconfuse()
slugany.deconfuse ¶
Replace confusable Unicode characters with their Latin equivalents.
Converts Cyrillic homoglyphs and Greek letters that visually resemble Latin characters to their ASCII equivalents.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The text to deconfuse. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The text with confusable characters replaced. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Examples: