Phase I: fixed process_inflections to capture intersections properly, added leading and trailing delimiter stripping