diff --git a/memanto/app/services/memory_parsing_service.py b/memanto/app/services/memory_parsing_service.py index 8e104fb2e..9845783f2 100644 --- a/memanto/app/services/memory_parsing_service.py +++ b/memanto/app/services/memory_parsing_service.py @@ -41,7 +41,6 @@ class MemoryParsingService: for pattern in [ r"https?://[^\s<>()\[\]{},;:\"']*[^\s<>()\[\]{},;:\"'.,!?]", r"\b(?:endpoint|url|api key|path|email|phone|address)\b", - r"\b(?:is|are|was|were)\b", ] ] diff --git a/tests/test_memory_parsing.py b/tests/test_memory_parsing.py index 4c040c6de..130a012bc 100644 --- a/tests/test_memory_parsing.py +++ b/tests/test_memory_parsing.py @@ -190,3 +190,14 @@ def test_fuzzy_fallback_does_not_fire_on_unrelated_text(): parser.parse_memory(memory) assert memory.type == "fact" + + +def test_ambiguity_guard_not_bypassed_by_auxiliary_verbs(): + parser = MemoryParsingService() + + # Contains 'is' alongside a typo for a decision term + memory = make_memory("The project uses Django and it is maintained, and we decded on Postgres") + + parser.parse_memory(memory) + + assert memory.type == "decision"