intgr / topy

Python script to fix typos in text, based on the RegExTypoFix project from Wikipedia and AutoWikiBrowser
Other
35 stars 11 forks source link

replaced re with regex #6

Closed berendt closed 10 years ago

berendt commented 10 years ago

There are a lot of errors because of "look-behind requires fixed-width pattern".

Using regex (https://pypi.python.org/pypi/regex) instead of re allows us to compile every available pattern.

Loaded 3596 rules (0 errors, 43 disabled)

berendt commented 10 years ago

needs further testing, looks like not all rules are working like expected

intgr commented 10 years ago

Thanks, I didn't know this project exists. This is definitely a good idea.

Do you have any examples of rules working incorrectly?

berendt commented 10 years ago

https://gist.github.com/berendt/1e88ecb974e16fbe2238

Tested on openSUSE 13.1 (Python 2.7.6).

intgr commented 10 years ago

No, I meant working incorrectly with the new regex module. You said "looks like not all rules are working like expected". Or did I misunderstand?

berendt commented 10 years ago

Only with re. With regex all rules are working like expected.