How cross-script homoglyphs such as Latin a (U+0061) vs Cyrillic а (U+0430) and visual look-alike swaps like l↔I or rn↔m fool human eyes, and how local script-folding inspection flags them.
Written and measured by the operator of Is it AI? (run by one person) · Published 2026-11-28 · About the operator
Impostor accounts on social networks copy the profile photo and bio verbatim and change a single character in the handle. When that swap uses a visually identical Cyrillic or Greek letter instead of Latin, human eyes cannot tell the two handles apart. This article explains the exact character-folding and confusable-group checks implemented in src/handlecheck.ts.
Unicode contains letters from separate scripts that render identically in standard system fonts. Replacing Latin lowercase a (U+0061) with Cyrillic а (U+0430) turns @naver_help into @nаver_help — visually indistinguishable in a feed or direct message.
During real-world testing we noticed that a comparison limited to ASCII look-alikes (such as l↔I or o↔0) labeled Cyrillic substitutions as merely “structurally different” instead of flagging impersonation. We added explicit mixed-script detection and homoglyph folding so any handle that becomes identical only after folding non-Latin characters raises the highest impersonation warning.
| Technique | Legitimate character | Impostor substitution | Visual detectability |
|---|---|---|---|
| Cyrillic homoglyphs | a (U+0061), e (U+0065), o (U+006F) | а (U+0430), е (U+0435), о (U+043E) | Virtually impossible by eye |
| Greek homoglyphs | o (U+006F), a (U+0061), p (U+0070) | ο (U+03BF), α (U+03B1), ρ (U+03C1) | Very difficult in UI fonts |
| ASCII confusables | l, O, m, d | I / 1, 0, rn, cl | Frequently missed on small mobile screens |
| Separators & affixes | official_id | official.id, official_id_backup | Easy to skim past under time pressure |
The comparator strips matching prefixes and suffixes, then checks whether the remaining middle span belongs to the same visual confusable group (such as l/i/1/I/|, o/O/0, m/rn/nn, or _/./-). Differing characters are highlighted inline so you can see exactly which glyph was swapped.
Entering your own official handle also generates a local watchlist of single-character confusable variants plus common impersonator suffixes (_official, .official, _real, _backup) so creators and brands can proactively search for look-alike accounts.
src/handlecheck.tssrc/botdetect.ts