Given a paragraph of text s, identify and extract all valid words, normalize them, and return the 10 most frequent words (case-insensitive) along with their occurrence counts.
A word is defined as the longest possible sequence of consecutive English letters ('A' - 'Z' or 'a' - 'z'). Treat all non-letter characters as delimiters and ignore them.
Return up to 10 word-frequency pairs, each as a string represented [word, frequency].
Results should be ordered by descending frequency. For words with the same frequency, order them in ascending lexicographical order. If there are fewer than 10 unique words, return all available pairs.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected