Letter Frequency Rank Compare Tool
Compare actual descending letter-count rank to caller reference; equal counts use ASCII alphabetical order, distance not distribution significance.
Description
Letter-frequency ranking depends on the submitted sample and expected ordering.
Letter-frequency ranking depends on the submitted sample and expected ordering.1
Comparing ranks is a descriptive measure rather than a statistically established language identity. Use Letter Frequency Rank Compare Tool to evaluate the supplied inputs under the specific model below.
When to use Letter Frequency Rank Compare Tool
Use Letter Frequency Rank Compare Tool to evaluate the supplied inputs under the specific model below. Choose the intended encoding, alphabet or check and keep the exact character, key and measurement conventions described below.
How to use Letter Frequency Rank Compare Tool and understand its results
- Choose the intended encoding, alphabet or check and keep the exact character, key and measurement conventions described below.
- Enter Text, Caller expected descending rank using the field table and validation rules below, then run the tool.
- Read Observed descending rank, Absolute rank distance and interpret units, signs, ordering and placeholders as explained below.
- If the tool reports an input error, correct that field and rerun. A successful false result, empty match list or unknown-evidence placeholder has the specific meaning described here; check the limitations before applying the result.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| text | Text | string | Required; constraints below |
| callerExpectedDescendingRank | Caller expected descending rank | string | Required; constraints below |
Enter a nonempty unique uppercase A–Z reference order of at most 26 letters and text containing only those letters. Count every reference letter, rank by descending count with ASCII alphabetical ties and sum absolute differences between observed and declared rank positions. Unseen letters remain in the ranking with zero counts; empty text is accepted. The result is a rank-distance statistic without an installed English frequency order.
rankDistance = Σletters abs(observedRank−referenceRank), with equal counts tied alphabetically Field order, units and branch conditions follow the implementation explanation above.
| Output field | Meaning | Value type |
|---|---|---|
| observedDescendingRank | Observed descending rank | string |
| absoluteRankDistance | Absolute rank distance | number |
{
"input": {
"text": "ABBA",
"callerExpectedDescendingRank": "BA"
},
"output": {
"observedDescendingRank": "AB",
"absoluteRankDistance": 2
}
} Limitations and assumptions
Comparing ranks is a descriptive measure rather than a statistically established language identity. Apply the exact scope and assumptions described above.
All listed fields require explicit values. Unexpected fields, incorrect types, nonfinite numbers and sparse arrays fail validation. Domain-specific bounds, alignments and supported tokens are stated above; extremely large inputs or outputs can also be rejected. These errors differ from successful results such as false, no matches or unknown evidence.
Alternative or Complementary methods
Use Chi-Squared English Fitness Scorer for a related task: A Pearson letter-fit score compares observed counts with a supplied positive frequency model.
Use Vigenère Key-Length IoC Estimator for a related task: Index of coincidence compares repeated letters within candidate key-position columns.
References
-
Letter Frequency Rank Compare Tool — tool.io
Similar or alternative tools
- Chi-Squared English Fitness Scorer
A Pearson letter-fit score compares observed counts with a supplied positive frequency model.
- Vigenère Key-Length IoC Estimator
Index of coincidence compares repeated letters within candidate key-position columns.