Skip to content

Ondkloss/norwegian-wordlist

Repository files navigation

Norwegian wordlist

Simple project to create a list of Norwegian words. To run:

python word_parser.py

Example output (and working wordlist) is wordlist_20191010_norsk_ordbank_nob_2005.txt and wordlist_20191010_norsk_ordbank_nno_2012.txt.

You can also provide --length (-l) or --pattern (-p) to filter the wordlist. Some examples:

python word_parser.py --help
python word_parser.py --length 4
python word_parser.py --length 3-5
python word_parser.py --length 7-*
python word_parser.py --pattern '.*ubåt.*'
python word_parser.py -l 7-* -p 'a.+sin'

To handle sorting of ÆØÅ you can include the PyICU module. This also fixes some diacritic issues (EÉÈÊ), but might give some illogical results for AA sorted as Å.

Source

The bokmål source material is from Norsk ordbank – bokmål 2005, the 2019-10-10 update. It is released under the CC-BY 4.0 license.

The nynorsk source material is from Norsk ordbank – nynorsk 2012, the 2019-10-10 update. It is released under the CC-BY 4.0 license.

Software license

The software in this repo is licensed under WTFPL and can be read in LICENSE.

Known issues

  • The regex to remove proper nouns also removes several valid words as well.
  • One might evaluate also removing some additional special characters, for example 1, 2, 3, 4 and /.

About

A Norwegian wordlist

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages