# Keyword frequency without semantic claims

A support team wants to explore recurring words before choosing a more sophisticated language system. The fixture lowercases English ASCII letters, extracts alphabetic tokens and removes a small declared stopword set: the,a,and,is,to,my. For “The late parcel and late refund. Refund is pending.” the most frequent words are late2,refund2 and parcel1. Ties use alphabetical order, so parcel precedes pending. This explicit rule matters when requesting only three results.

Frequency is a descriptive count, not a determination of what the customer intends. “Not late” still contains late, and removing words can destroy distinctions. The tokenizer does not support all languages, Unicode writing systems, numbers or nuanced negation. A keyword list can guide human inspection of records; it should not automatically accuse staff, refuse a refund or infer a customer’s emotional state.

Run the original phrase, then replace it with stopwords alone: the result is empty. Change punctuation and casing and inspect the stable counts. Add repeated words and check the top-n boundary. The function rejects non-text input and nonpositive or boolean n. A robust project would also define document boundaries, duplicate-message treatment, privacy controls and which language-specific tokenizer is appropriate.

Customer service defines the collection and reviews examples; analytics documents preprocessing; managers decide whether the resulting themes answer a useful question. Ask Whose language is underrepresented, What was removed, Where the text came from and Why a word count is relevant to an operational decision. Foundation: explain a token and count. Undergraduate: reproduce the vocabulary and tie ordering. Postgraduate: compare document frequency, phrase extraction and multilingual preprocessing with reviewed samples. Research: propose an annotation study of theme validity and representational bias. Submit token lists, changed examples, a preprocessing specification and a human-reviewed theme memo. This is a reproducible counting baseline, not a deep-learning model or a general language-understanding system.

## Expected baseline

Top3:late2,refund2,parcel1;ties alphabetical;stopword-only input gives empty list.

## Evidence

1. Write hand predictions before running the fixture.

Response:

2. Run the implementation and tests;compare expected output.

Response:

3. Complete the specific changed and failure cases described above.

Response:

4. Submit the four-level study evidence and departmental decision memo.

Response:
