11 lines
433 B
Python
11 lines
433 B
Python
#!/usr/bin/env python3
|
|
"""Upstream-compatible tools/classify_candidates.py with [Ingglish: ...] recognition."""
|
|
import re
|
|
|
|
|
|
def classify(line: str) -> dict:
|
|
s = line.strip()
|
|
if "[Ingglish:" in s and "]" in s:
|
|
return {"classification": "ingglish-curated", "keep": True, "reason": "curated Ingglish phonetic entry with English gloss"}
|
|
return {"classification": "standard", "keep": True, "reason": "standard entry"}
|