cruftlab / tilfeldigeord.no

A new (again) minimal, static website for tilfeldigeord.no, built with Eleventy
https://tilfeldigeord.no
MIT License
1 stars 1 forks source link

Check if words are valid before merging #19

Open loket opened 3 years ago

loket commented 3 years ago

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

loket commented 2 years ago

All words can be found here: https://www.nb.no/sprakbanken/ressurskatalog/?_search=ordbank

loket commented 2 years ago

Also, this could be useful: https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/

loket commented 2 years ago

Could possibly reverse engineer an API from this site: https://ordbokene.no/

loket commented 2 years ago

Also, check that there are no duplicates before merging.