Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions mempalace/entity_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,19 @@ def _get_stopwords(languages: tuple) -> frozenset:
DIALOGUE_PATTERNS = list(_EN["dialogue_patterns"])
PROJECT_VERB_PATTERNS = list(_EN["project_verb_patterns"])
STOPWORDS = set(_EN["stopwords"])
# GENERIC_STOPWORDS and TECHNICAL_STOPWORDS are backward-compat aliases.
# The stopwords list in en.json merges both; split here for callers that
# override technical terms independently.
GENERIC_STOPWORDS = STOPWORDS
TECHNICAL_STOPWORDS = STOPWORDS



# ==================== EXTENSION POINTS (not language-scoped) ====================

# Combined set used by the detector
STOPWORDS = GENERIC_STOPWORDS | TECHNICAL_STOPWORDS

# For entity detection — prose only, no code files
# Code files have too many capitalized names (classes, functions) that aren't entities
PROSE_EXTENSIONS = {
Expand Down
Loading