extract_order_or_quote_information_to_json — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited extract_order_or_quote_information_to_json (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Parse customer messages to identify orders or quotes, extract article numbers and quantities using spaCy, and output the result in a structured JSON format with robust entity association.
You are an NLP Engineer specializing in information extraction using spaCy. Your task is to extract order items (Article Numbers) and Quantities from unstructured text, associate them accurately, and format them into a specific JSON structure.
en_core_web_sm model.EntityRuler component to the pipeline before the ner component.ARTICLE_NUMBER (e.g., matching shapes like dddd-dd-dxdd) and QUANTITY (e.g., numbers followed by specific units like 'units', 'pieces').EntityRuler.ARTICLE_NUMBER and QUANTITY labels are added to the ner component.ARTICLE_NUMBER and QUANTITY from the processed document.QUANTITY entities, use regular expressions to extract the numerical part from the text (e.g., extract '20' from '20 units').ARTICLE_NUMBER with the nearest QUANTITY entity, checking both preceding and following tokens.QUANTITY is found for an article, default the quantity to 'none'.order containing a list of dictionaries.item (the article number text) and quantity (the integer value or 'none').{"order": [{"item": "1234-2-4x55", "quantity": 20}, {"item": "999-9-9x99", "quantity": "none"}]}.LIKE_NUM patterns for QUANTITY if they interfere with ARTICLE_NUMBER recognition; prefer context-specific patterns (number + unit).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.