Prefix Function Algorithm

Prefixes, like other affixes, can be either inflectional, make a new form of the word with the same basic meaning and same lexical category (but playing a different character in the sentence), or derivational, make a new word with a new semantic meaning and sometimes also a different lexical category. In English, there are no inflectional prefixes; English uses suffixes instead for that purpose.

Prefix Function source code, pseudocode and analysis