Sleman Regency, located in the Special Region of Yogyakarta, is home to numerous tourist villages offering diverse attractions, ranging from natural and cultural tourism to culinary experiences. However, many tourists still face difficulties in finding tourist villages that match their interests and needs because the available information tends to be general rather than personalized. This study develops a tourist village recommendation system for Sleman using a Content-Based Filtering approach combined with Term Frequency–Inverse Document Frequency (TF-IDF) and cosine similarity. The dataset comprises 20 active tourist villages in Sleman Regency, compiled from the official website of the Sleman Regency Tourism Office in 2024. The dataset includes the name of each tourist village, subdistrict, tourism category, main attractions, and facilities. These attributes were combined into a single descriptive text for each village and processed through case folding, tokenization, stopword removal, and stemming using the Sastrawi library, resulting in 125 unique features. The resulting text representations were then weighted using TF-IDF. Cosine similarity was applied to measure the similarity between user preference queries and each tourist village, and the five villages with the highest similarity scores were presented as recommendations (Top-5). The system was evaluated using three query scenarios and the Precision@5, Recall@5, and F1-score metrics, with ground-truth relevance labels manually established based on attribute matching. The evaluation results yielded an average score of 93.3% across Precision@5, Recall@5, and F1-score. This study is expected to help tourists identify suitable tourist villages while supporting the promotion of village tourism potential in Sleman Regency.
Copyrights © 2026