length of last word Algorithm

Additionally, comparisons are complicated because place names may be considered words, technical terms may be randomly long, and the addition of suffixes and prefixes may extend the length of words to make grammatically correct but unused or novel words. The identity of the longest word in English depends upon the definition of what constitutes a word in the English language, as well as how length should be compared.

length of last word source code, pseudocode and analysis