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
txt<- c("The red-shirted lawyer gave her yellow-haired, red nose ex-boyfriend $300 out of pity:(.")
dict<-quanteda::dictionary(list(lawyer= c("\\blawyer\\b", "law.er")))
liwcalike(txt, dict, what="word", valuetype="regex")
Thank you for clarifying! I have a dictionary that makes extensive use of perl regex, so indeed, I would like to put my name down for this feature request :)
Dear Dr. Benoit,
I tried to run the following:
But the word lawyer is not matched:
Is this expected behavior? To what extent are regular expressions supported by
liwkalike()
and, downstream,tokens_lookup.tokens()
?Thank you sincerely,
Caspar
The text was updated successfully, but these errors were encountered: