osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handle foreign character web input


On Sat, Jun 29, 2019 at 6:31 AM Tobiah <toby at tobiah.org> wrote:
> Also, what do people do when searching for a record.
> Is there some way to get 'Ronngren' to match the other
> possible foreign spellings?

SequenceMatcher in difflib can do fuzzy string comparisons and
should work for cases like that. There are other methods too --
include "fuzzy" in your web searches and you'll probably find
several options.

        ...Akkana