Use every place node of the OSM dataset which has a village-tag (place=village).
Search in a radius of ca. 700 m for a street with one of the following highway-values: residential, unclassified or service.
If no street can be found, mark the place as “unmapped