A rare word occurs substantially less often than other words in a reference text collection. Detecting it requires comparing word frequencies across the full collection, not merely within one document. section 9.3.1
A practical detection workflow:
- Normalize text by lowercasing words and removing nonalphabetic content so different cases do not create separate counts. section 9.3.1
- Count each word across all records, then assign every document the frequency of its least-frequent word. section 9.3.1
- Also consider the number of rare words or the document’s mean word frequency, because one unusual word may be less informative than a broader pattern. section 9.3.1
20 Newsgroups
Among 11,314 cleaned documents, 121 contained a word used only once. That threshold may be less useful than searching for documents containing many rare words. section 9.3.1
