feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

22
indice.py Normal file
View File

@@ -0,0 +1,22 @@
from sys import exit
from wordutils import clean
index = {}
try:
inf = open("indexdata.txt", "r")
except FileNotFoundError:
exit("File not found")
for line in inf:
fields = line.split(":")
key = fields[0].strip()
word = fields[1].strip()
if key not in index:
index[key] = set()
index[key].add(word)
print(index)