The Serbian language has four classes of noun declension. Implementing them significantly reduces the need for a large dictionary. The only nouns needing a dictionary are exceptions to the rules. Here's the [link](https://pspasojevic.blogspot.com/2013/04/blog-post_1622.html) to the rules (in Serbian).