-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude not working for apostrofs #27
Comments
@drummerroma interesting. Are you sure it's the same character in the text and exclude clause? |
I used cut and paste in the rails console. So I am sure. |
@drummerroma yes, there is. These are different characters. The apostrophe, code is |
Yes, I agree. But the exclude instruction should work anyway. |
I just confirmed that this doesn't exclude the apostrophe but does exclude the single quote. Strange. I'll have to investigate why. |
w = "L’Unesco a perdu tout crédit et Donald Trump en tire les conséquences"
tokeniser = WordsCounted::Tokeniser.new(w).tokenise(exclude: "’")
[ [ 0] "l", [ 1] "unesco", [ 2] "a", [ 3] "perdu", [ 4] "tout", [ 5] "crédit", [ 6] "et", [ 7] "donald", [ 8] "trump", [ 9] "en", [10] "tire", [11] "les", [12] "conséquences"
The text was updated successfully, but these errors were encountered: