use txt instead of csv and add credits

This commit is contained in:
2026-06-24 16:59:08 -04:00
parent 144625cb5b
commit 05e443a528
4 changed files with 6976 additions and 14411 deletions

View File

@@ -1,4 +1,3 @@
import csv
import random
from collections import defaultdict
@@ -72,22 +71,9 @@ def generate_name():
def _load_raw_names():
names = []
with open("untitled/assets/nameset.csv", newline="", encoding="utf-8") as file:
reader = csv.reader(file)
next(reader)
for row in reader:
name = row[5].lower()
if (
name == "name not provided"
or name == "untitled"
or name == "unknown"
or name == "kitten"
or not name
):
continue
if name.isalpha():
names.append(name)
with open("untitled/assets/cat_names.txt") as f:
for name in f.readlines():
names.append(name.strip())
return names