Description
Count distinct languageTokens literally when caseSensitive is true, otherwise after JavaScript lowercase conversion.
Source-scoped cultural and historical records preserve an edition, naming convention, or local identifier. Literal agreement is useful bookkeeping but does not establish interpretation, authenticity, or authority.
Count distinct languageTokens literally when caseSensitive is true, otherwise after JavaScript lowercase conversion.
When to use this tool
Use Agreement Language Count when you need a precise source-token or range consistency check.
How to use the tool and how it works
- Enter languageTokens, caseSensitive. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read count. Use the output convention below.
Count distinct languageTokens literally when caseSensitive is true, otherwise after JavaScript lowercase conversion.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| languageTokens | Language Tokens | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| caseSensitive | Case Sensitive | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| count | Count | Required. Safe integer. |
{
"input": {
"languageTokens": [
"en",
"EN",
"fr"
],
"caseSensitive": false
},
"output": {
"count": 2
}
} Limitations and assumptions
- Lowercase does not canonicalize language tags or perform full Unicode case folding; authoritative language status is not established.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Consult the source edition and relevant community or scholarly guidance before interpreting or reusing the material.
References
Similar or alternative tools
- Authority Heading Language Count
Select exact heading matches, count those records, and count distinct language strings among them.
- SKOS Preferred Label Language Budget
Group labels by lowercase language string and count distinct literal labels within each group.