an, fy, id and ms: some nice_* writers raise NotImplementedError

Open
#702 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
localization

Research direction

Start in ovos_date_parser/res/, which has no date_time.json for id or ms and no duration words for an or fy. Compare these with the existing res/<lang>/ files that already work for the same writers. Run the reproduce snippet in the issue to see which of the 10 cells still raise NotImplementedError. Done means every writer returns text for these four languages without errors, and the translations need a reviewer fluent in each language.

Written by the indexing model from the issue text.

Description

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting. I ran the calls below in a fresh uv venv with ovos-date-parser 0.41.5a1 and chronologia 0.43.16a1. The docs round on #701 found the cells; I re-ran each one.

Observed

Four languages have writers for some nice_* functions, and the other functions raise NotImplementedError.

lang works raises
an nice_date, nice_date_time, nice_year, and the other date writers nice_duration, nice_relative_time ("Unsupported language: an - please translate ...")
fy nice_date, nice_date_time, nice_year, and the other date writers nice_duration, nice_relative_time
id nice_duration ("lima menit"), nice_relative_time nice_date, nice_date_time, nice_year ("Unsupported language: id"), after the warning "could not find .../res/id/date_time.json"
ms nice_duration ("lima minit"), nice_relative_time nice_date, nice_date_time, nice_year, after the same warning for res/ms

Expected

Every writer works for a language that the package lists. id and ms need res/<lang>/date_time.json. an and fy need the duration words in res/<lang>/.

Reproduce

import datetime as dt, ovos_date_parser as o
d = dt.datetime(2026, 11, 25, 15, 10)
for lang in ("an", "fy", "id", "ms"):
    for f in (lambda: o.nice_date(d, lang), lambda: o.nice_duration(dt.timedelta(minutes=5), lang)):
        try: print(lang, f())
        except NotImplementedError as e: print(lang, "NotImplementedError:", e)

Where

ovos_date_parser/res/: id and ms have no date_time.json; an and fy have no duration data for the shared writer. The writer matrix of #701 (docs/img/writer_coverage.png) shows the same 10 cells.

Dominant language
Python
Stars
0
Forks
8
Avg merge
13h 26m
Merged PRs (30d)
77

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenVoiceOS/ovos-date-parser

All issues in OpenVoiceOS/ovos-date-parser

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.