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

オープン
#702 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
localization

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

🤖 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.

主要言語
Python
スター
0
フォーク
8
平均マージ
13時間 26分
マージ済み PR(30日)
77

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenVoiceOS/ovos-date-parser のほかの issue

OpenVoiceOS/ovos-date-parser の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。