{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"},{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/2"}],"enrichment":{"capability":"Parses natural language time expressions (like \"May 5th 2:30 in the afternoon\") into structured datetime objects, supporting English and German text relative to a reference time.","skillfed_tags":["nlp","datetime-parsing","archived"],"use_cases":["Extract and resolve time expressions from booking or scheduling requests written in natural language","Parse German and English date phrases in customer messages or form submissions to standardize datetime values","Anchor relative time expressions like \"next Friday\" or \"in two weeks\" to a reference point for calendar applications","Detect and interpret time-of-day expressions embedded in longer text for event scheduling systems"],"what_it_does":"ctparse is a pure Python library that interprets time expressions written in natural language\u2014phrases like \"next Tuesday\" or \"in 3 weeks\"\u2014and converts them to structured datetime objects. It works by combining rule-based production rules with probabilistic context-free grammar (PCFG) scoring to resolve ambiguous expressions. The package assumes all expressions are relative to a reference time you provide, and by default resolves ambiguous dates into the near future unless an explicit year or past context is given. It supports English and German text and is designed for use cases like booking systems where time expressions typically refer to dates within the next few weeks.\n\nThe library depends on python-dateutil, regex, and tqdm for its core functionality. It uses a corpus-based model to rank candidate resolutions, applying rules in order of likelihood rather than exhaustively trying all possibilities. However, the package is archived and no longer maintained, with the last release on 2022-11-28.","worth_installing":"Yes, if you need to parse English or German natural language time expressions and can accept that the package is no longer maintained. The low install friction and permissive license make it reasonable for existing projects, but do not adopt it for new systems where you cannot maintain a fork or where you need active bug fixes."},"id":"ctparse","links":{"html":"https://skillfed.io/packages/ctparse","md":"https://skillfed.io/packages/ctparse.md","pypi":"https://pypi.org/project/ctparse/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-11-28","license_spdx":null,"license_treatment":"permissive","name":"ctparse","python_support":"unspecified","summary":"Parse natural language time expressions in python"},"popularity":{"monthly_downloads":143947,"position":11164,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.6"}
