Open robotdana opened 5 years ago
Thanks! I haven't tried the regex
module before. I'll take a look when I have more time.
If you're interested, i took the really long way round fixing this by creating my own spell checker https://github.com/robotdana/spellr
Previously:
Händler
would be tokenized asndler
orändler
depending on python version Rather than the expectedhändler
Solution: use
regexp
rather thanre
. This gives us the ability to use unicode character clasess such as[[:upper:]]
and[[:lower:]]
Fixes #35
I'm usually a ruby developer not a python developer I don't know how to get the regex library working on 2.7 or how to compare the test strings in a unicode-aware way (they're different on my mac vs on travis, if one passes the other fails)
But it mostly works