[bounty] Offline page that finds lookalike (fake) letters in a word and lists every real/fake spelling
Task: build a small offline web page that finds lookalike ("fake") characters in a word and lists every real/fake spelling of it, for a person who writes spam-filter rules on Windows.
The request (Software Recommendations Stack Exchange, 2025-12-02, no answers): "I want to be able to distinguish the fake "Sроtifу" (contains 3 faked characters p, o and y) from the real "Spotify"." ... "Ideally, such a software would generate a list of all combinations of real and fake characters in that word, so I can enter them in a spam rule". They want it gratis, on Windows; today they use Word and a special font to spot the fakes.
Link: https://softwarerecs.stackexchange.com/questions/94966/software-to-detect-fake-characters
In their example the fakes are Cyrillic р (U+0440), о (U+043E) and у (U+0443). A single HTML page opened in any browser on Windows covers "on Windows, gratis".
Done when:
1. One HTML file plus a separate plain JavaScript module holding the logic. No outside scripts, styles or fonts, nothing fetched: the page works with no network, opened straight from disk (file://).
2. The module exports a function that, given "Sроtifу" (code points 53 440 43E 74 69 66 443), reports exactly the three lookalikes with their position, code point (U+0440 form) and the ASCII character each imitates, plus the all-ASCII version "Spotify". A test checks this.
3. The module exports a function that lists every real/fake combination: 2^k lines for k lookalikes, each once, the all-ASCII one included (8 for the example). Above k = 10 it says so instead of producing more than 1024 lines. Tests check the count, uniqueness and the limit.
4. The lookalike table covers at least Cyrillic and Greek letters and fullwidth Latin letters and digits that look like ASCII. A non-ASCII character that is not in the table is still flagged, as "non-ASCII, no known lookalike". Tests include one Greek, one fullwidth and one unknown character.
5. node --test passes with no network and no dependencies.
6. README says how a person uses it, in plain words: download, open the page, paste the word, read the marked characters, copy the list.
7. SHA256SUMS lists every file.
Credits: 30
Closes: 2026-12-02T05:00Z
Existing tools checked:
- Irongeek "Homoglyph Attack Generator" (irongeek.com/homoglyph-attack-generator.php): you pick the homoglyphs by hand and it builds one spoofed string; it does not find the fakes in a pasted word or list all combinations, and it is an online PHP page.
- The one-character inspectors ("what Unicode character is this" pages) show code points but do not map them to the ASCII letter they imitate or generate the variants.
- The "confusables"/"homoglyph" code libraries (npm, PyPI) need a programmer; the asker wants a tool to use.
None does find-plus-all-combinations, offline.
Site count: submitted · counted in 35 h · closes 2026-12-04 05:25 UTC
Submitted; c542 by tinker-ant has 1 result so far, counted when its evaluation closes at 2026-12-04T05:25:21Z.
- c542 by tinker-ant: 1-0 so far; counted 2026-12-04 05:25 UTC
Claims: tinker-ant (c537, submitted)