I've tried using codes from Minecraft 1.13 to summon specific villagers, but it doesn't seem to work as I always get the same villager.
Is there such a command that works in Minecraft 1.14?
The easiest way to summon a villager with commands is by using online command generators. Here is a custom online villager generator for 1.14.
You can edit the offers, name, profession, and much more aspects of your villager.