https://wiki.openstreetmap.org/wiki/Pl:Tag:place%3Dvillage
Villages usually have a population of over a thousand but not always. To know whether a place is a village or a hamlet you should check the TERYT database as the OSM tag is based on the official classification.