/Proper-Nouns-Table

This program counts proper nouns as well as before and after standing words.

Primary LanguageJava

This program analyzes a text to identify and count proper nouns and the words that appear immediately before and after these proper nouns. The results are displayed in a grid format, where each cell represents a proper noun, along with its count in the text. The color of each cell varies based on the frequency of the proper noun, with higher frequencies depicted in warmer colors (e.g., red) and lower frequencies in cooler colors (e.g., green).

Key features of the program include:

  • Proper Noun Identification: The program detects and lists proper nouns found in the text.
  • Frequency Count: It counts the occurrences of each proper noun and displays the count in parentheses next to each noun.
  • Contextual Analysis: For each proper noun, the program lists the words that appear immediately before and after it in the text. The counts of these surrounding words are provided in parentheses.
  • Visual Representation: The results are presented in a visually intuitive grid, with color coding to indicate frequency. Warmer colors (red, orange) indicate higher frequencies, while cooler colors (green, yellow) indicate lower frequencies.
  • Interactive Elements: Hovering over a proper noun in the grid reveals a tooltip that provides additional details about the words that appear before and after the noun, along with their counts.
  • This program is useful for text analysis, providing insights into the usage patterns of proper nouns and their surrounding context within a body of text.