haikufinder icon indicating copy to clipboard operation
haikufinder copied to clipboard

Check for word in custom.dict before splitting/throwing exception

Open m1 opened this issue 9 years ago • 3 comments

See here: http://github.com/jdf/haikufinder/blob/master/haikufinder/init.py#L146

Shouldn't the script check if the word is in custom dictionary before splitting, and maybe do the same with numbers such as 100?

m1 avatar Feb 10 '16 17:02 m1

Yes; good catch.

jdf avatar Feb 10 '16 18:02 jdf

Nice, I made a few edits for a thing I made including this change if you want me to make a pull req?

m1 avatar Feb 10 '16 18:02 m1

Yes, by all means.

jdf avatar Feb 10 '16 18:02 jdf