Skip to content

Pronunciation describes the word on the card

Choose a tag to compare

@AlphaNerdFx AlphaNerdFx released this 18 Aug 13:50
· 315 commits to main since this release

Pronunciation now describes the word on the card, in every mode and in
English. No migration: the fields added in v0.5.0 are unchanged, and this
only alters what goes into them.

Fixed

  • Cross-language mode put the wrong word's pronunciation on the card.
    With --def-lang, ipa and audio_url were read from the translated
    word's index entry, so a German video with --def-lang fr showed Haus
    carrying maison's \me.zɔ̃\ and a French recording. Examples, synonyms
    and antonyms were already gated against exactly this; pronunciation had
    been added beside the gate without being inside it.

    Pronunciation is now resolved once, by _resolve_pronunciation(lemma, language), independent of which source supplied the definition. No
    definition branch touches it. See ARCHITECTURE.md 8.34.

Added

  • English pronunciation. dictionaryapi.dev returns real IPA (/haʊs/)
    and a complete audio URL in a phonetics block, on a call the pipeline
    already made and never parsed. English cards now carry pronunciation even
    when Merriam-Webster supplied the definition.
  • Pronunciation on English fallback cards, through the same resolver.

Changed

  • CLAUDE.md §3.3 is now stated as a question — does this field describe
    the word shown?
    — rather than a list of three field names. Written as a
    list, it was violated three times, each by someone adding a fourth thing
    beside the gate.