Class ZipfLawAnalyzer
java.lang.Object
org.episteme.social.linguistics.ZipfLawAnalyzer
Validates Zipf's Law in a text corpus.
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeFrequencies(String text) Analyzes word frequency distribution.static RealcalculateZipfConstant(int rank, int frequency) Checks the Zipf constant (k = rank * frequency).
-
Method Details
-
analyzeFrequencies
-
calculateZipfConstant
Checks the Zipf constant (k = rank * frequency). Ideally, this should be constant across the corpus.
-