The game will tell you when this happens -- you'll know.

Keep trying with the plants if you haven't gotten the message about getting all 4 -- the villager may fail a few times before mastering that particular plant.

And it only happens once, afaik.