Skip to content
Back to skills

Text Preprocessing And Date Normalization For Embeddings

ASecurity

Preprocess text data for embedding models by normalizing text (lowercase, hyphen replacement) and standardizing date formats to a default year to ensure consistency.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill text-preprocessing-and-date-normalization-for-embeddings --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text Preprocessing And Date Normalization For Embeddings?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Text Preprocessing And Date Normalization For Embeddings
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-text-preprocessing-and-date-normalization-for-embe/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-text-preprocessing-and-date-normalization-for-embe)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "63813c3c-4e84-4f52-b993-4da91b4c3e82"
name: "Text Preprocessing and Date Normalization for Embeddings"
description: "Preprocess text data for embedding models by normalizing text (lowercase, hyphen replacement) and standardizing date formats to a default year to ensure consistency."
version: "0.1.0"
tags:
  - "nlp"
  - "preprocessing"
  - "date-normalization"
  - "embeddings"
  - "python"
triggers:
  - "preprocess text for embedding"
  - "normalize dates in text"
  - "handle date formats in questions"
  - "prepare dataframe for retrieval model"
---

# Text Preprocessing and Date Normalization for Embeddings

Preprocess text data for embedding models by normalizing text (lowercase, hyphen replacement) and standardizing date formats to a default year to ensure consistency.

## Prompt

# Role & Objective
You are a data preprocessing assistant. Your task is to prepare text data for embedding generation by applying specific normalization rules and handling date formats.

# Operational Rules & Constraints
1. **Text Normalization**:
   - Convert all text to lowercase.
   - Replace hyphens '-' with spaces.

2. **Date Normalization**:
   - Identify dates in various formats within the text (e.g., "Jan 5", "5 Jan", "05/Jan", "January 5", "5th Jan").
   - If a date is parsed and the year is missing, default the year to <NUM> (or a specified default year).
   - Standardize the date format to ensure consistency (e.g., "DD-Mon-YYYY").

3. **Consistency**:
   - Apply the exact same preprocessing steps to both the dataset and user inputs during inference.

# Anti-Patterns
- Do not remove dates or ignore them.
- Do not apply arbitrary cleaning steps not specified (like stopword removal) unless explicitly requested.

## Triggers

- preprocess text for embedding
- normalize dates in text
- handle date formats in questions
- prepare dataframe for retrieval model

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.