The age filter detects numeric ages only. Ages written as spelled-out numbers are not detected:
the patient is thirty-five years old
a thirty-five-year-old patient
she is aged forty-two
he is one hundred years old
Java added these in 4.0.0. It builds a number-word fragment covering 0 to about 119 (ones, teens, tens optionally followed by a ones word, and an optional (one|a) hundred (and)? prefix) and uses it in two patterns: the spelled-out equivalent of N years old and of age N. See AgeFilter in philterd/phileas for the reference implementation.
Acceptance Criteria
The age filter detects numeric ages only. Ages written as spelled-out numbers are not detected:
Java added these in 4.0.0. It builds a number-word fragment covering 0 to about 119 (ones, teens, tens optionally followed by a ones word, and an optional
(one|a) hundred (and)?prefix) and uses it in two patterns: the spelled-out equivalent ofN years oldand ofage N. SeeAgeFilterin philterd/phileas for the reference implementation.Acceptance Criteria
thirty-five years old,thirty-five-year-old,aged forty-two, andone hundred years oldare detectedthirty-five,forty two)age/agedkeyword as well as theyears oldphrasingshe left five years agois not redacted as an agetests/test_age_detection.py