Catalog
Browse kinds, units, aliases, and fuzzy vocab.
Prefer the live demos? Open this section in the interactive docs.
Kinds include SI bases, pressure units (psi, hPa, inH₂O, kgf/cm²), data rates (Mbps, MB/s), flow rates (gpm, mL/min), acceleration (m/s², gee), torque (N⋅m, lb-ft), electrical units (V, A, Ω, C), substance (mol), concentration (M, μM, mol/L), light units (cd, lm, lux, nit), radiation units (Gy, Sv, Bq, Ci), fuzzy temperature bands, aliases, and date shorthand. Reader-facing unit notation uses real symbols such as m², ft², in², km², Ω, and μ; canonical JSON keeps separate stable machine ids. The read-only query surface is @pascal-app/lingo/catalog.
Dates live under @pascal-app/lingo/date: parseDate, parseDateRange, parseDuration, humanizeDate, humanizeDateRange, and humanizeDuration. Date parsing accepts an explicit now option for deterministic results. Covered forms include today, tomorrow, yesterday, relative offsets, weekdays, next/last week/month/year, ISO dates, ambiguous numeric dates with alternatives, times of day (at 3pm, 17h, quarter past 5, 5.30pm, midi), timezones (3pm EST, +05:30, Europe/Paris — exposed by default, resolved with applyZone), and time slots (2pm to 4pm, between 9 and 5, 9-5, from 3pm).
Captions:
- Alias roulette: Aliases, unicode, and compounds normalize to one canonical base.
- Fuzzy bands: Fuzzy words parse only when a kind supplies vocabulary.
- Date shorthand: Reference time is explicit, so relative dates, year-less dates, and time-only inputs stay deterministic.