-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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.