ngram_frequencies
Analyze word frequency trends over time in Norwegian books and newspapers using NGram data from the National Library of Norway's Digital Humanities Lab.
Instructions
Get word frequency trends over time using NGram analysis.
Args: words: List of words to analyze corpus: Corpus type. Options: 'bok' (books), 'avis' (newspapers). Default: 'bok' from_year: Start year (default: 1810) to_year: End year (default: 2020) smooth: Smoothing parameter for the frequency curve (default: 1)
Returns: JSON string containing frequency data over time
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"words": "<words>"
},
"name": "ngram_frequencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | ||
| corpus | No | bok | |
| from_year | No | ||
| to_year | No | ||
| smooth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |