Questions & Answers about V knihovně je moc lidí.
Because after the preposition v when it means in, Czech uses the locative case.
- knihovna = the basic dictionary form, library
- v knihovně = in the library
So the ending changes because the noun is not standing alone; it is being used after v in a location phrase.
Czech sometimes changes v to ve to make pronunciation easier, especially before difficult consonant clusters.
But with knihovně, normal Czech uses v knihovně.
Compare:
- v knihovně
- ve škole
- ve městě
- ve vlaku
So ve is not automatic; it depends on what sounds natural in Czech.