Skip to main content Module parser Copy item path Source extract_bound Extract a bound: “X is within Y of Z” → (X, Z-Y, Z+Y) extract_comparison Extract a comparison: “X is greater than Y”, “X > Y”, “X is at least Y” extract_number_before Shared parsing utilities for extracting numbers and patterns from natural language.
Extract a number that appears immediately before the given keyword. extract_number_near Extract a number near a keyword (within 30 chars before it). extract_number_with_unit Extract a number with a unit suffix (e.g., “50khz”, “200hz”). extract_range Extract a range from patterns like “X to Y”, “between X and Y”. extract_range_check Extract a range check: “X is between Y and Z”