ETEvoraTools
Text Analysis

Word Frequency Counter

Word Frequency Counter extracts the shared word-like runs, lowercases them, counts occurrences in a Map, sorts entries by descending count, and prints word: count. Ties rely on stable insertion order in the runtime. It does not normalize Unicode, stem words, remove stopwords, use locale-specific case folding, calculate percentages, preserve punctuation, or protect colon/newline ambiguity in unusual tokens.

Runs locally — files stay on your device
Quick answer

What determines order when counts tie?

Typically first occurrence order, relying on stable sorting.

Frequency depends on tokenizer and normalization

Counts describe surface token occurrences under this regex, not concepts, lemmas, or semantic importance.

How it works

Tokens increment a Map; entries sort by b.count-a.count and become line output.

Key concepts

Case collapses

Text and text share a row.

Ties preserve encounter order

No alphabetical secondary sort.

When to use it

  • Find repeated surface words.
  • Review keyword repetition roughly.
  • Create a quick frequency list.

When not to use it

  • Do not infer importance or SEO value.
  • Do not compare languages without compatible tokenization.
  • Do not expect stopword filtering.

Worked examples

Counts

Input
red blue red
Expected output
red: 2\nblue: 1

Descending frequency.

Case

Input
Word word
Expected output
word: 2

Lowercased.

Tie

Input
b a
Expected output
b: 1 then a: 1

First-seen tie order.

Common mistakes

Equating frequency with relevance

Context is absent. Correction: Interpret in the document.

Expecting stemming

Forms remain separate. Correction: Use NLP preprocessing.

Ignoring stopwords

Common function words can dominate. Correction: Apply a reviewed list externally.

Best practices

  • State token rules.
  • Review ties and language effects.
  • Use semantic analysis for meaning.

Related operations and differences

Unique Word Counter

Choose Unique Word Counter when you need to count distinct words without case differences.; use Word Frequency Counter specifically for word frequency.

Add Prefix to Every Line

Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Word Frequency Counter specifically for word frequency.

Add Suffix to Every Line

Choose Add Suffix to Every Line when you need to add the same suffix after every line.; use Word Frequency Counter specifically for word frequency.

Capitalize Every Word

Choose Capitalize Every Word when you need to capitalize the first character of every word.; use Word Frequency Counter specifically for word frequency.

Character Counter

Choose Character Counter when you need to count Unicode characters in text.; use Word Frequency Counter specifically for word frequency.

Extract Email Addresses

Choose Extract Email Addresses when you need to find unique email addresses in text.; use Word Frequency Counter specifically for word frequency.

Limitations and privacy

  • Regex tokens, basic lowercase, descending counts; no normalization, stemming, lemmatization, stopwords, percentages, alphabetical tie-break, n-grams, context, or charts.

The text is analyzed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Is matching case-sensitive?

No after lowercasing.

Are stopwords removed?

No.

Are percentages shown?

No.

How are ties sorted?

By retained insertion order in typical stable sorting.

References