Word Frequency

Word Frequency

Difficulty :beginner

Calculating the frequency of words in a block of text is a technique which has various uses in algorithms such as searching, sorting, and semantic analysis. The objective of the Word Frequency app is count the frequency of words in a block of text and create a tabular display of each unique word in the text along with its frequency, in descending order by frequency.

Suggested features :

  • User can see a text input box, a 'Translate' button, and a word frequency table.
  • User can see an error message if the text input box is empty.
  • User can click the 'Translate' button to analyze the word frequency in the text that has been input.
  • User can see the word frequency table ordered in descending sequence by word frequency.
  • User can see the word frequency table populated when the 'Translate' button is clicked. Each row in the table contains a word and the number of times it occurs in the input text.
  • User can enter text (or cut and paste) into the input box. This input box must allow the entry of large blocks of text (maximum of 2048 characters).
Example of implementations to inspire from :
Share the word :