Skip to main content
Nasjonalbiblioteket

N-grams from the National Library of Norway 2026

Distributions 
1
APIs 
0
  • Nameless distribution
    • application/zstd , application/json
    Download
No registered APIs provide this dataset.
  • Datasets
  • Public access 

    Publicly available to everyone. Access may still require registration and an API key request, as long as anyone can request such registration and/or API keys.

    Read more about access levels here

  • Open data 

    The dataset is classified as public access and has at least one distribution with an approved open license.

OverviewDistributions & APIs 
1
DetailsDiscussions 
0
RDF

Description

This resource contains n-grams – i.e. uni-, bi- and trigrams – from all books and newspapers that had been digitized at the National Library of Norway as of March 2026. The n-grams have been extracted from material consisting of approximately 685,000 books and 4,720,000 newspapers, amounting to a total of 160 billion tokens (words and punctuation). The file format is UTF-8-encoded JSONL, compressed with the efficient Zstandard algorithm.

Content Keys in the n-gram JSONL files: – first – the first word (in uni-, bi- and trigrams) – second – the second word (in bi- and trigrams) – third – the third word (in trigrams) – lang – the language of the n-gram (only for books, the newspapers have no language classification as yet) – freq – the total frequency of the n-gram in the collection of books and newspapers – counts – a dictionary with raw frequencies for each year totals.json contains aggregated frequencies per year in the book and newspaper corpora. Using them, relative frequencies can be calculated in order to compare frequencies over time, as in NB N-gram. ngram-2026-digibok-metadata.jsonl and ngram-2026-digavis-metadata.jsonl contain simple metadata for the books and newspapers. More extensive metadata can be obtained through Oria or the APIs at https://api.nb.no/.

Data preparation The n-grams were extracted from the full-text databases provided by the DH-lab at the National Library of Norway (https://www.nb.no/dh-lab/). The following frequency cuts were applied:

  • unigram (books): total frequency of less than five in the corpus for Norwegian Bokmål, less than two in all other languages. Additionally, the n-gram must appear in more than one year.
  • unigram (newspapers): total frequency of less than five in the corpus. Additionally, the n-gram must appear in more than one year.
  • bigram (books and newspapers): similar frequency cuts as for unigrams. Additionally, hapax bigrams within one year were removed.
  • trigram (books and newspapers): similar frequency cuts as for bigrams. Additionally, hapax trigrams within one year were removed.

License The data are released in the public domain (CC-0).


Similar datasets

Translation Memories from Semantix ASNasjonalbiblioteket
Public access
Grapheme-to-Phoneme Models for Norwegian BokmålNasjonalbiblioteket
Public access
NB N-gramNasjonalbiblioteket
Public access
NST Pronunciation Lexicon for SwedishNasjonalbiblioteket
Public access
Grapheme-to-Phoneme Models for NorwegianNasjonalbiblioteket
Public access

Contact information

Contact point:
Not provided
Website:
https://www.nb.no/sprakbanken/
Email:
sprakbanken@nb.no
Telephone:
Not provided

About the data

Language:
Not provided
Content providers:
Not provided
Provenance:
Not provided
Update frequency:
Not provided
First issued:

This date indicates when the data in this dataset was first released. It may have happened before the dataset was published on data.norge.no.

March 15, 2026
Last updated:
June 15, 2026
Accuracy:
Not provided
Availability:
Not provided
Completeness:
Not provided
Currentness:
Not provided
Relevance:
Not provided
Geographical scope:
Not provided
Temporal scope:
Not provided
Conforms to:

Reference to an implementation rule or other specification that forms the basis for the dataset.

Not provided

Legal basis

Not provided

Concepts used in the dataset

Not provided

References

Not provided

Fees

Not provided

About this dataset

Publisher:
Nasjonalbiblioteket
Published:

This date indicates when the dataset was harvested by data.norge.no. It may have been available earlier elsewhere.

Read more about harvesting here

July 1, 2026
Last updated:
July 1, 2026
Landing page:
Not provided
Documentation:
Not provided
Dataset type:
Not provided
Metadata Quality:

Metadata quality is an indicator of how well the datasets are described using metadata.

Read more about metadata quality here

URI:

Themes

Keywords

Not provided

Discussions on Datalandsbyen
0

No discussions found

What is Datalandsbyen?

Datalandsbyen is our online forum where you can request data, share experiences, and ask for advice related to data sharing and information management.