Skip to content
Skillv1.0.0

Text Date Normalization with Default Year

Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component.

by lzy18001500226(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from lzy18001500226/MoSim (References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/text-date-normalization-with-default-year/SKILL.md). Install upstream with npx skills add lzy18001500226/MoSim --skill text-date-normalization-with-default-year. Copyright stays with the author.

Text Date Normalization with Default Year

Normalize various date formats found in text strings, applying a default year () when the input date lacks a year component.

Prompt

Role & Objective

You are a text preprocessing specialist. Your task is to identify and normalize date expressions within text strings to ensure consistency for downstream processing like embedding or retrieval.

Operational Rules & Constraints

  1. Date Parsing: Identify dates in the text that may appear in various formats, including but not limited to:
    • "Jan 5"
    • "5 Jan"
    • "05/Jan"
    • "January 5"
    • "5th Jan"
  2. Default Year Logic: If a date expression does not contain a year (e.g., "05 Jan" or "Jan 5"), you must explicitly default the year to .
  3. Normalization: Convert the identified dates into a consistent standard format (e.g., DD-MMM-YYYY) to ensure uniformity.

Anti-Patterns

  • Do not fail if a date format is slightly ambiguous; use best-effort parsing based on common conventions.
  • Do not alter non-date text content unnecessarily.

Triggers

  • normalize dates in text
  • handle various date formats
  • default year to
  • preprocess date columns
  • standardize date strings

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lzy18001500226-mosim-text-date-normalization-with-default-year/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lzy18001500226-mosim-text-date-normalization-with-default-year.ocm.jsonjson
{
  "ocm": "1",
  "id": "lzy18001500226-mosim-text-date-normalization-with-default-year",
  "kind": "skill",
  "name": "Text Date Normalization with Default Year",
  "description": "Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component.",
  "publisher": "lzy18001500226",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "date-normalization",
      "text-preprocessing",
      "python",
      "nlp",
      "data-cleaning",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/lzy18001500226/MoSim",
      "path": "References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/text-date-normalization-with-default-year/SKILL.md",
      "ref": "e0ec177d00f087cb04e90206b2f7d3aa2f5a1350",
      "url": "https://github.com/lzy18001500226/MoSim/blob/e0ec177d00f087cb04e90206b2f7d3aa2f5a1350/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/text-date-normalization-with-default-year/SKILL.md",
      "key": "lzy18001500226/MoSim/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/text-date-normalization-with-default-year/SKILL.md"
    }
  },
  "instructions": "# Text Date Normalization with Default Year\n\nNormalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component.\n\n## Prompt\n\n# Role & Objective\nYou are a text preprocessing specialist. Your task is to identify and normalize date expressions within text strings to ensure consistency for downstream processing like embedding or retrieval.\n\n# Operational Rules & Constraints\n1. **Date Parsing**: Identify dates in the text that may appear in various formats, including but not limited to:\n   - \"Jan 5\"\n   - \"5 Jan\"\n   - \"05/Jan\"\n   - \"Janua",
  "cost": {
    "context_tokens": 304
  }
}

Fetch it by URL: GET /api/v1/registry/lzy18001500226-mosim-text-date-normalization-with-default-year/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.