I know the moss package is related to this but I cannot make it work yet(one similar post can be found here). For example for the string "John said John" the result should be "John" and positions 1 and 11.
Extra:
A good extra thing would be to understand multiple words as well for example "John Williams thanked John Williams" should return "John Williams". The best would be to be able to give me the longest repeated substrin for example "John loves Joh" would give "Joh" and "John Williams thanked John Will" should give "John Will"
Related Posts with How can I check if a string has repeated words?
I use qreg, then margins, then mplotoffset: how do I change the spacing for my y-axis?Hi Stata community, I want to change the spacing for my y-axis. Currently I have 0.5 cm between one…
Probit QuestionHi all, If I have a panel of people from ages 25-30, who I may observe more than once in these ages…
RDRobust QuestionHi all, I am trying to use a fuzzy regression discontinuity strategy in some data work of mine. I h…
Custom STS graph axis with spacingHi, This is my first post on STATALIST I am trying to create a custom y axis scale using Sts graph…
Stata tables to word format by writing matrix commandHi. I am using a dataset that has 3 years. I am using the command tabulate to do analysis. So I am w…
Subscribe to:
Post Comments (Atom)
0 Response to How can I check if a string has repeated words?
Post a Comment