Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Separate an English word from its prefix if one is present
ResourceFunction["WordPrefix"][wd] returns wd divided into its prefix, if there is one, and the rest of the word. |
Separate a word from its first prefix:
In[1]:= | ![]() |
Out[1]= | ![]() |
Separate a word from multiple prefixes:
In[2]:= | ![]() |
Out[2]= | ![]() |
Separate prefixes in a list of words:
In[3]:= | ![]() |
Out[3]= | ![]() |
Whether part of a word is a prefix or a root is sometimes a judgment call. WordPrefix attempts to make sensible judgments in those cases:
In[4]:= | ![]() |
Out[4]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License