Code Monkey home page Code Monkey logo

norwegian-wordlist's Introduction

Norwegian wordlist

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

python word_parser.py

Example output (and working wordlist) is wordlist_20220201_norsk_ordbank_nob_2005.txt and wordlist_20220201_norsk_ordbank_nno_2012.txt. They are generated without PyICU, described below.

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 2022-02-01 update. It is released under the CC-BY 4.0 license.

The nynorsk source material is from Norsk ordbank – nynorsk 2012, the 2022-02-01 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 /.

norwegian-wordlist's People

Contributors

ondkloss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.