You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was doing some text clean up with replace_word_elongations and ran into a case where the phrase "AAA battery" caused all word elongation matches to become NA. I modified the example from the help file to show the situation:
Yes, I am using the current version on CRAN. I will give that new commit a try. The work around I used was to transform all the text to lower case. That resolved the issue I was having wit moved case.
I was doing some text clean up with replace_word_elongations and ran into a case where the phrase "AAA battery" caused all word elongation matches to become NA. I modified the example from the help file to show the situation:
x <- c('look', 'noooooo!', 'real coooool!', "it's sooo goooood", 'fsdfds',
'fdddf', 'as', "aaaahahahahaha", "aabbccxccbbaa", 'I said heyyy!',
"I'm liiiike whyyyyy me?", "Wwwhhatttt!", "AAA battery")
replace_word_elongation(x)
[1] "look" NA NA NA "fsdfds" NA "as" NA
[9] "aabbccxccbbaa" NA NA NA NA
Thanks in advance for any help you can provide. I have been pleased with how the textclean package has been working so far.
The text was updated successfully, but these errors were encountered: