Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Unicode Text Normalizer

text.normalize_unicode

ProductionBounded custom (Class B)Deterministicstrictinstantv1.0.0
File inputNo network

Overview

Normalizes Unicode text using NFC, NFD, NFKC, or NFKD forms. Optionally applies case folding, whitespace collapsing, trimming, and diacritic removal. Reports whether the text changed, code point counts, and which operations were applied. Accepts file input via file_ref — no need to extract file content first.

Visually identical text can have multiple Unicode representations — we canonicalize yours so comparison, hashing, and deduplication stay reliable.

Reliability

STRICT and deterministic — same text and options always yield the same normalized output per the Unicode Standard. Output over 100 KB is stored as a file automatically, and outputToFile lets you force that for smaller results too. Input validation (not retryable): a form outside NFC, NFD, NFKC, NFKD; neither text nor file_ref; both text and file_ref; text longer than 1,048,576 characters.

Context footprint

Accepts inline text up to ~1M chars or file input via file_ref (up to 2 MB). Normalized output exceeding 100 KB is automatically stored as a downloadable file. Upload files via POST /v1/files/upload before passing file_ref; download output via the returned download_url. A successful call costs 1 execution credit.

When to use it

When you merge text from multiple sources and need a canonical form before compare, hash, deduplicate, or store.

Do not use for encoding detection or mojibake repair, language translation, or when text is already known to be in the target form.

Scope

Note
We normalize your Unicode text to a standard form (NFC, NFD, NFKC, or NFKD) with optional case folding, trimming, whitespace collapse, and diacritic removal — and report whether anything changed.

Non-goals

  • Does not translate text
  • Does not detect language
  • Does not detect or repair broken encoding (mojibake)

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

normalizationtext-processing

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input1 MBMax file size1.9 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file1.9 MiBSkill maximum

How we handle your data

Sensitive output possible
What this means

This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response may contain submitted or transformed content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
textstringNoBounded inline text source. Required unless file_ref is provided.
file_refstringNoTenant-scoped opaque text-file reference. Omit it to use the required inline text; never send both.
formstringNoUnicode normalization form; omit it for NFC.
caseFoldbooleanNoWhether Unicode case folding is applied; omit it for false.
trimbooleanNoWhether outer whitespace is removed; omit it for false.
collapseWhitespacebooleanNoWhether repeated whitespace collapses; omit it for false.
removeDiacriticsbooleanNoWhether combining marks are removed; omit it for false.
outputToFilebooleanNoWhether a large result is stored as a file; omit it for false.

Output schema

FieldTypeRequiredDescription
textstringNoNormalized inline text when returned inline.
file_refstringNoStored normalized-text reference when returned by file.
download_urlstringNoTemporary platform download URL when returned by file.
size_bytesintegerNoReturned UTF-8 byte size.
changedbooleanYesWhether any requested operation changed the text.
inputCodePointsintegerYesOriginal Unicode code-point count.
outputCodePointsintegerYesReturned Unicode code-point count.
appliedOperationsarrayYesBounded array of applied operation names in deterministic execution order. The item shape is defined by the nested schema and the array contains from 1 through 8 items.
offsetsPreservedbooleanYesWhether source character offsets remain valid.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"text.normalize_unicode","input":{"text":"café","form":"NFC","caseFold":true}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("text.normalize_unicode", {"form":"NFC","text":"café"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not translate text
  • Does not detect language
  • Does not detect or repair broken encoding (mojibake)
  • Translating between languages
  • Detecting character encoding
  • Repairing mojibake or broken encodings

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "text.normalize_unicode",
  "input": {
    "form": "NFC",
    "text": "café"
  }
}

Examples

NFC normalize accented text

Inputjson
{
  "form": "NFC",
  "text": "café"
}
Expected outputjson
{
  "inputCodePoints": 5,
  "text": "café",
  "outputCodePoints": 4,
  "changed": true,
  "offsetsPreserved": false,
  "appliedOperations": [
    "normalize:NFC"
  ]
}
Tip
Combining accent composed into single character

Remove diacritics for search

Inputjson
{
  "text": "Résumé",
  "form": "NFD",
  "removeDiacritics": true
}
Expected outputjson
{
  "inputCodePoints": 6,
  "text": "Resume",
  "outputCodePoints": 6,
  "changed": true,
  "offsetsPreserved": true,
  "appliedOperations": [
    "normalize:NFD",
    "removeDiacritics"
  ]
}
Tip
NFD decomposition then strip combining marks
  • Normalize text before comparison or deduplication
  • Prepare text for consistent hashing
  • Remove diacritics for simplified search
  • Canonicalize user input before database storage

Avoid for

  • Translating between languages
  • Detecting character encoding
  • Repairing mojibake or broken encodings

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

texttransformationnormalization