Homophonic translation¶
homophonic_translation · translation · validated
Compare complete source and target symbol streams from supplied pronunciation data against an explicit normalized edit-distance limit. This checks declared symbols, not pronunciation accuracy or literary quality.
Provenance¶
- Source: Louis Zukofsky and Celia Zukofsky, Catullus (1969)
- Attribution:
primary— a named author, work and year this catalogue stands behind - Checkability:
source— decidable against the source text it was made from - Attested:
author-stated— the originator set this rule down
Details¶
- Kind: both
- Languages: en
- Requires:
tokens - Deterministic: no
- Also known as: sound translation
- In other languages: Homophone Übersetzung (de), Traduction homophonique (fr)
Notes¶
ADR 0049: data is versioned JSON with distinct language labels, provenance, a shared symbol alphabet and per-word source and target pronunciations. lang must match the source label. Every word must resolve; an unknown word or an empty stream fails even with max_distance=1. Comparison is Levenshtein distance divided by the longer stream length, without automatic stress removal or phonetic equivalence rules. max_distance is required in [0,1]. Symbol streams are limited to 4096 units each. Word boundaries are ignored after lookup. No pack claims a bilingual phoneme capability; the supplied data is not independently verified. This row provides checking only, not target-text search.
Prompt hint¶
Supply versioned bilingual JSON data and a source; unknown entries fail.
Parameters¶
| Name | Type | Default | Description |
|---|---|---|---|
data |
string | — |
Versioned JSON with two pronunciation tables and a shared symbol alphabet. |
max_distance |
number | — |
Explicit maximum normalized symbol edit distance; no default. |
source |
string | — |
The text this one was made from. |
Examples¶
supplied-data-match¶
en — this text satisfies the procedure.
chat
Parameters: source='cat', data='{"version": "supplied-bilingual-v1", "source_language": "en", "target_language": "fr", "provenance": "constructed test data; not a verified bilingual dictionary", "alphabet": ["a", "b", "c"], "source_pronunciations": {"cat": ["a", "b"]}, "target_pronunciations": {"chat": ["a", "b"], "mot": ["a", "c"]}}', max_distance=0
Source: constructed structural example; data is not independently verified
supplied-data-mismatch¶
en — this text does not satisfy the procedure.
mot
Parameters: source='cat', data='{"version": "supplied-bilingual-v1", "source_language": "en", "target_language": "fr", "provenance": "constructed test data; not a verified bilingual dictionary", "alphabet": ["a", "b", "c"], "source_pronunciations": {"cat": ["a", "b"]}, "target_pronunciations": {"chat": ["a", "b"], "mot": ["a", "c"]}}', max_distance=0
Source: constructed structural counterexample