dsh-jp-vocab: Daily Summary of New Japanese Vocabulary

Introduction

DeepSeek Harness (DSH) emphasizes “everything is a plugin,” allowing developers to inject specific capabilities into agents through plugins. In Japanese language learning, a common need is: aggregating vocabulary words looked up and bookmarked on the web into a Markdown file grouped by part of speech, for easier review later. Existing approaches require manual organization or custom scripts, which are costly to maintain. This article introduces dsh-jp-vocab, which automates this process through a three-piece solution.

Plugin Positioning & Maintainer

dsh-jp-vocab is a DSH plugin maintained by chuuu4536-gh. It reads JSONL files written by the Edge extension and a local host, then generates Markdown summaries grouped by part of speech.

Core Capabilities

The plugin itself is not responsible for data collection—it only handles “aggregation.” Data is written into JSONL files by the companion Edge extension and local host. The plugin reads these files, generates Markdown based on a template, and supports grouping by part of speech, custom template paths, and more.

Tools Registered After Installation

Upon installation, three tools are registered:

  • jp_vocab_today: Reads vocabulary for a specified date and returns entries with the current configuration.
  • jp_vocab_summary: Generates summaries/YYYY-MM-DD.md based on a template.
  • jp_vocab_settings: Reads/modifies the shared configuration.

Installation & Activation

Installing the DSH Plugin

Install from GitHub:

dsh plugin --profile <profile> add github:chuuu4536-gh/dsh-jp-vocab

After publishing to npm, you can also use:

dsh plugin --profile <profile> add dsh-jp-vocab

After installation, the plugin writes daily summary files to the configured summariesDir.

Typical Usage

  1. Select a Japanese word on a web page → click “Look up”;
  2. The result card appears in the top-right corner of the web page by default (without obscuring the main content); if you prefer it to follow the selection, change “Card Position” to “Beside selected word” on the extension options page;
  3. Click the star icon at the bottom-right of the result card to bookmark it;
  4. Tell DSH “Generate today’s summary,” or directly invoke jp_vocab_summary;
  5. The summary is written to the configured summariesDir, e.g., 2026-11-18.md.

Morphological analysis (lemmatization) is handled on the extension side (kuromoji + rule-based fallback): selecting “惹かれて” resolves to the base form “惹く,” and candidate entries can be toggled back to intermediate forms.

Configuration & Data Sources

The extension options page and the DSH plugin read from the same file: %USERPROFILE%\.jp-vocab\config.json.

Key Default Description
vocabDir D:\...\vocab Daily vocabulary JSONL directory (written by host)
summariesDir D:\...\summaries Summary Markdown output directory (written by plugin)
timeZone Asia/Shanghai Timezone used for business dates
dayStartHour 0 Hour of day to start a “day” (0–6); 6 means 06:00–05:59 next day counts as the same day
enrichMode auto auto fetches examples/collocations online before generating; manual only produces a draft
overwrite true Whether to overwrite an existing summary file with the same name
groupByPos true Group summaries by part of speech
templatePath empty Custom template path; empty uses the built-in template

The extension side also has two browser-local preferences (stored in chrome.storage.sync, not in config.json):

Preference Default Description
direction auto Dictionary direction: Auto / JA-ZH / ZH-JA
cardPosition top-right Result card position: Top-right of page / Beside selected word

enrichMode is an execution convention for the agent: the plugin itself does not make network calls; online enrichment is performed by the agent that invokes it.

Installing the Edge Extension & Local Host (Optional, for Data Provision)

This repository is a three-piece set. The DSH plugin portion is installed via the marketplace or dsh plugin add; the other two parts require manual installation.

  1. Register the host (Windows, standard privileges):
   cd native-host
   powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1
  1. Load the extension: Open edge://extensions → Developer mode → Load unpacked extension → select edge-ext/.

  2. Open the extension options page and confirm that “Local host connected” is displayed at the top.

See native-host/README.md for detailed troubleshooting.

You can still use only the DSH plugin, but without a data source—the vocabulary list must be generated by bookmarking through the extension. The extension and host are not included in the marketplace installation scope.

Templates & Fields

The built-in template is at templates/daily-summary.md, supporting {{date}}, {{count}}, {{#words}}…{{/words}}. Within each entry, you can use {{no}}, {{word}}, {{reading}}, {{pitchText}}, {{posText}}, {{gloss}}, {{examplesText}}, {{context}}, {{url}}, {{note}}, and optionally {{#groupHeading}} for group headings.

Development & License

node --test test/            # or run test/*.test.mjs individually

MIT, see LICENSE.

Use Cases & Cautions

Suitable for developers or learners who need to automate Japanese vocabulary organization and output grouped by part of speech. The plugin runs with the current DSH process permissions; review the source code and license before installing. The plugin itself does not make network calls; online enrichment is performed by the agent that invokes it.

In Short

dsh-jp-vocab automates the “look up & bookmark → group by part of speech” workflow, making it ideal for DSH agent scenarios that require Japanese vocabulary management. Directory page and GitHub repository are listed below.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye