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
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 |