Skip to content

API Reference parrot_formdesigner.audio.normalize.phone

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_formdesigner.audio.normalize.phone

View source

PHONE post-processor: spoken or written phone → '+'? digits, valid for the submit gate (FEAT-653).

Alias NormalizeContext

Re-exported from parrot_formdesigner.audio.normalize.base.NormalizeContext.

Alias NormalizeResult

Re-exported from parrot_formdesigner.audio.normalize.base.NormalizeResult.

Alias PHONE_PATTERN

Re-exported from parrot_formdesigner.services.validators.PHONE_PATTERN.

Alias SpokenLexicon

Re-exported from parrot_formdesigner.audio.narration.lexicon.SpokenLexicon.

Attribute logger

Function normalize_phone

Leading plus word/'+' kept; digit words, digit_aliases, repeat_words, compound tens ('fifty five'→'55'); every separator (space , . - ( )) dropped; accepted iff PHONE_PATTERN matches, else rejected (too_short).

normalize_phone(text: str, ctx: NormalizeContext) -> NormalizeResult

Parameter Type Default Description
text str
ctx NormalizeContext

Returns: NormalizeResult

Alias parse_numbers

Re-exported from parrot_formdesigner.audio.normalize.numbers.parse_numbers.

Alias tokenize

Re-exported from parrot_formdesigner.audio.normalize.numbers.tokenize.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally