Junior — Senior
Develop a class with text analysis methods
livecode
Task condition
Create a class that takes a string with arbitrary text. The first method of the class outputs to the console the longest word from the given text. The second method prints the word that occurs most frequently in the text. The third method counts and outputs the number of special characters (e.g., periods, commas, etc.) in the text. The fourth method outputs all found palindromes, separated by commas.