nexusnv/paxman-python ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python library that takes messy human input and turns it into the one authoritative canonical value it should mean, with clear provenance for how it got there.
I want it to handle things like emails, dates, countries, currency codes, IPs, URLs, ISBNs, phone numbers, language tags, and a few other common identifiers. The library should let me register all built in capabilities at once or only the ones I need, then call a single canonicalize function with a contract for that capability. If the input is recognized and validated, return the normalized value. If there is no match, mark it as missing. If it is recognized but fails validation, mark it as invalid. If more than one authority could apply, mark it as ambiguous.
Please include good tests, basic docs, and a clean public API that feels easy to use from a script. If you need to check the latest rules for standards like RFCs or ISO specs, look them up online first.