natural icon indicating copy to clipboard operation
natural copied to clipboard

Can we add "y'all" to the normalizer conversion table?

Open MeanwhileMedia opened this issue 4 years ago • 3 comments

In my app i'm finding "y'all" to be a somewhat common contraction that isn't accounted for in normalizer.js: https://github.com/NaturalNode/natural/blob/master/lib/natural/normalizers/normalizer.js#L34

MeanwhileMedia avatar Jan 07 '22 18:01 MeanwhileMedia

Y'all better fix this or y'all fixin to git a whoopin bi the Southern Man.

#sarcasm #dialects

devinhedge avatar Apr 05 '22 09:04 devinhedge

You should use something like expand-contractions before passing your String to the tokenizer.

See #533

titanism avatar Jun 12 '22 20:06 titanism

Ref: https://github.com/stdlib-js/stdlib/issues/496

titanism avatar Jun 13 '22 05:06 titanism

Won't fix, is better solved with preprocessing.

Hugo-ter-Doest avatar May 30 '23 10:05 Hugo-ter-Doest