The tagging of place=village or place=hamlet has nothing to do with the original data source, in this case the TERYT records. The official legal definition of a village is any settlement with a population greater than 100, in some cases 150. The upper limit for place=village is 1000 residents. This is the settlement hierachy used worldwide for classification. 