in reply to Searching for homophones and words that are similar

I would parse a dictionary like wiktionary.org for phonetic writing and listed homophones.

For instance for here you'll find

which lists hear and hir as homophones.

It also gives the phonetics as /hɪə̯(ɹ)/, /hɪː(ɹ)/.

Based on that data you can try to find the closest approximation to a typo with Levenshtein distance.

But be warned that full accuracy is nearly impossible, it's English after all.

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Searching for homophones and words that are similar
by Bod (Parson) on Mar 22, 2023 at 10:43 UTC
    But be warned that full accuracy is nearly impossible, it's English after all

    Oh yes!
    After the discussion on how to Split first and last names and my subsequent implementation of names, I have no expectation of getting full accuracy.

      I think the biggest assault on English comes from those who don't get it from within, for example, consider the Speaker pro tempore of the US House, Marjorie Taylor Green, here talking about a peachtree dish. (She was reaching for petri dish.)

        Just to show how difficult it is :)

        > (She was reaching for petri dish.)

        The "Petri" before the "dish" is capitalized, since it derives from a person.

        update

        tho wiktionary lists the lowercase version as alternative spelling.

        Cheers Rolf
        (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
        Wikisyntax for the Monastery