german-nouns
german-nouns copied to clipboard
why not use sqlite?
Looking at
https://github.com/gambolputty/german-nouns/blob/1d076f5eeb2bf2bac2974362417382415ea746be/german_nouns/lookup/init.py#L35-L68
this logic screams for just writing import sqlite3
(comes with the python interpreter!), creating a table in memory (or on disk), maybe even with a column index, and writing some simple sql queries.
Hello, if you submit a PR, I'll be happy to take a look at it!