-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] LexicalMap #266
Comments
And of course with a levelspec: |
Wait, level spec doesn't make any sense, expr is a string.. |
Simple enough to implement. |
This already works with StringReplace, though I like the design of Map. LexicalMap[ToUpperCase, "This is cool", TextType["Adjective"|"Verb"]] vs StringReplace["This is cool", LexicalPattern[match:TextType["Adjective"|"Verb"] :> ToUpperCase[match]]] |
Maybe setting the MatchTrim option in the StringReplace UpValue? |
Merged
This was referenced Jun 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apply a StringReplace of a certain function on lexical patterns
The text was updated successfully, but these errors were encountered: