Description
Encode a caller-assigned corpus genre annotation with its codebook version.
Regional sources preserve geographic scope, language coverage, boundary vintages, archive identifiers and historical wording. A statistic year can differ from its boundary year, and a source-access label does not grant reuse rights. Literal names and transliterations require their own documentary context.
Encode a caller-assigned corpus genre annotation with its codebook version.
When to use this tool
Use Area Study Corpus Genre Code when you already have documentId, genreCode, codebookVersion and need to encode a caller-assigned corpus genre annotation with its codebook version.
How to use the tool and how it works
- Enter documentId, genreCode, codebookVersion. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read token. Use the output convention below.
Enter documentId, genreCode, codebookVersion using the field constraints below. Encode these values, in exactly that order, as a JSON array and return the serialized array as text in token. String values are preserved without trimming or external terminology lookup.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| documentId | Document Id | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| genreCode | Genre Code | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| codebookVersion | Codebook Version | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"documentId": "D17",
"genreCode": "news",
"codebookVersion": "v2"
},
"output": {
"token": "[\"D17\",\"news\",\"v2\"]"
}
} Limitations and assumptions
- The result records supplied values without classifying a document automatically. Sources and asserted relationships are not independently authenticated.
- 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 original datasets, maps, archives and language sources. Verify geography, period, translation and permissions before using local identifiers or labels to support historical, political or statistical interpretations.
References
Similar or alternative tools
- Area Study Local Number Format Token
Preserve a local numeric transcription and explicit formatting note.
- Area Study Source Geography Vintage
Associate a supplied source with explicit geography and boundary vintage.