Open loket opened 3 years ago
All words can be found here: https://www.nb.no/sprakbanken/ressurskatalog/?_search=ordbank
Also, this could be useful: https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
Could possibly reverse engineer an API from this site: https://ordbokene.no/
Also, check that there are no duplicates before merging.
Instead of just accepting every word into the dictionary, they should be looked up and verified before adding them. Not just that the word exists in the Norwegian dictionary, but also that it is a noun and in the correct form (I forget what this is called). I think one of them is m1, but I forgot what that means now 👼
Back in the day, you used to be able to download the whole dictionary as a zip file, which could probably be included here, possibly as a git submodule.
Anyway, it should be possible to verify each word in the list before merging them, and fail if one or more words are "invalid".