Information Retrieval System untuk Pencarian Putusan Perdata Mahkamah Agung Menggunakan TF-IDF dan Cosine Similarity
DOI:
https://doi.org/10.17509/jatikom.v9i2.1573Keywords:
Information Retrieval, Civil Case Decisions, TF-IDF, Cosine Similarity, Query ExpansionAbstract
The large number of civil case decisions published by the Supreme Court of Indonesia makes it difficult to find relevant information, and ordinary keyword search often returns inaccurate results. This study develops a web-based information retrieval system for searching Supreme Court civil decisions using TF-IDF and Cosine Similarity. The novelty of this research lies in the integration of query expansion based on a legal term dictionary to bridge the vocabulary gap between everyday language and legal terminology in decision documents, which has not been widely applied in the domain of Indonesian civil decisions. A collection of 2,454 decisions was gathered from the official Supreme Court decision directory by web scraping and processed through cleaning, case folding, tokenization, stopword removal, and stemming. TF-IDF is used to weight terms, Cosine Similarity is used to rank documents against the query. Evaluation was conducted using precision, recall, and F1-score with ground truth determined by matching legal dictionary terms against document preprocessing results; documents containing query-related terms were considered relevant. In a test with the query "perceraian" (divorce), the system achieved a precision of 66.67%, a recall of 100%, and an F1-score of 80%. It should be noted that this test was limited to a single query and five sample documents, so the results cannot be widely generalized. The system, implemented with Laravel and Python, helps users find civil decisions with search results sorted by relevance.





