Parity with philterd/phileas#332, which reports that the Java age filter does not detect Age: 47, the form age most often takes in a structured clinical or intake record.
This port is already ahead of Java here. phileas/filters/age_filter.py allows an optional colon:
re.compile(r"\b(age)(d)?(\s*:?\s*)[0-9.]+\b", re.IGNORECASE),
So Age: 47, Age : 47, age:47, and Age 47 are all detected today, while Age - 47 and Age = 47 are not.
This issue is therefore about converging on one answer rather than adding a missing feature. philterd/phileas#332 asks whether = and - should be accepted as separators alongside the colon; whatever it settles on, this implementation should match, so a policy behaves the same whichever language runs it.
A second, separate drift is worth recording here: Java carries two spelled-out patterns (age thirty-five, thirty-five years old) that neither this port nor the .NET port implements. That is a larger gap than the separator question and should be tracked on its own.
Acceptance Criteria
Parity with philterd/phileas#332, which reports that the Java age filter does not detect
Age: 47, the form age most often takes in a structured clinical or intake record.This port is already ahead of Java here.
phileas/filters/age_filter.pyallows an optional colon:So
Age: 47,Age : 47,age:47, andAge 47are all detected today, whileAge - 47andAge = 47are not.This issue is therefore about converging on one answer rather than adding a missing feature. philterd/phileas#332 asks whether
=and-should be accepted as separators alongside the colon; whatever it settles on, this implementation should match, so a policy behaves the same whichever language runs it.A second, separate drift is worth recording here: Java carries two spelled-out patterns (
age thirty-five,thirty-five years old) that neither this port nor the .NET port implements. That is a larger gap than the separator question and should be tracked on its own.Acceptance Criteria
Age: 47,Age : 47,age:47,Age 47) continue to be detected2026-01-15are still not detected as ages