in misc/precision_filtering/run_precision_filtering.py [0:0]
def wordlist(self):
import os
wordlist_path = os.path.join("wordlists-0.85", f"{self.language}.txt")
if not os.path.exists(wordlist_path):
raise ValueError(f"Wordlist for {self.language} not found")
return set(line.strip() for line in open(wordlist_path, "r") if line.strip())