Czech Names declension API

I created a Firebase Cloud Function that returns a vocative form of any given Czech name. I know you don’t speak the language and ofc there might also be some names that I didn’t handle correctly, but I would appreciate if You take a look at the architecture and maybe code organization. Are there any omitted API best practices or security problems I haven’t accounted for?

Here’s a GitHub repo: https://bit.ly/2ZO8gK3

Thanks

Hm - it looks interesting and pretty straightforward in terms of the cloud function overall. Tbh though - I can’t make sense of the vocative function at all. How does it work at a high level? Is there an explanation somewhere that you could link to in the readme?

It also seems like there is a lot of data woven into that function. It might be helpful to extract that data to a data structure outside of the function, so the function itself can be more focused on the logic.

1 Like