---
title: "hal-grammar-check"
url: "https://claudemods.dev/zh-cn/builds/hal-grammar-check-707409"
source: "https://github.com/vinta/hal-9000/tree/main/plugins/hal-grammar-check"
source_type: "github"
repo: "https://github.com/vinta/hal-9000/tree/main/plugins/hal-grammar-check"
author: "vinta"
author_handle: "vinta"
stars: 143
category: "提示词与输入增强"
categories: ["input"]
tags: ["grammar-check", "local-llm", "ollama", "plugin", "prompt-input", "traditional-chinese"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add vinta/hal-9000\nclaude plugin install hal-grammar-check@hal-9000"
added: "2026-10-05T17:25:23.607Z"
updated: "2026-11-22T21:48:39Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# hal-grammar-check

输入提示时即时进行语法检查，并用繁体中文解释；修正内容会在按 Enter 前显示在提示框上方。

## Description

# Claude Code Grammar Check

<img src="icon.svg" width="128" alt="vinta/hal-9000 icon">

输入提示时即时进行语法检查，并用繁体中文解释。修正内容会在按 Enter 前显示在提示框上方。

## 安装

**这个外掛需要本地 [Ollama](https://ollama.com/)** 和 `gemma4:31b-mlx` 模型：

```bash
ollama pull gemma4:31b-mlx
```

这是一个 [mod](https://code.claude.com/docs/en/plugins/mods/overview)，因此还需要 Claude Code 2.1.287 或更高版本。

```bash
claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check@hal-9000
```

然后重启 Claude Code。

## 使用

直接输入即可。停止输入约 250ms 后，草稿会发送到 Ollama，结果显示在提示框上方。较旧草稿的结果会被丢弃。

[hal-statusline](../hal-statusline) 会在提交后检查每个提示。为了避免同时看到两份结果，可以在环境变量中设置 `HAL_STATUSLINE_GRAMMAR_CHECK_DISABLED=1` 关闭它。

## 隐私

它会将草稿的前 500 个字符发送到本地 Ollama 的 `localhost:11434`。完全离线，不会有任何内容离开你的机器。

## 截图

![Claude Code Grammar Check 示例](https://raw.githubusercontent.com/vinta/hal-9000/main/assets/claude-code-grammar-check.png)

## Install

```
claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check@hal-9000
```

## Original README

# Claude Code Grammar Check

<img src="icon.svg" width="128" alt="vinta/hal-9000 icon">

A grammar check on your prompt while you type, with explanations in Traditional Chinese. The corrections show up above the prompt box, before you hit Enter.

## Installation

**This plugin needs a local [Ollama](https://ollama.com/)** with the `gemma4:31b-mlx` model:

```bash
ollama pull gemma4:31b-mlx
```

It's a [mod](https://code.claude.com/docs/en/plugins/mods/overview), so it also needs Claude Code 2.1.287 or later.

```bash
claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check@hal-9000
```

Then restart Claude Code.

## Usage

Just type. About 250ms after you stop, the draft goes to Ollama and the result shows up above the prompt box. A result for an older draft is dropped.

[hal-statusline](../hal-statusline) checks each prompt after you submit it. To avoid seeing both, turn that one off with `HAL_STATUSLINE_GRAMMAR_CHECK_DISABLED=1` in your environment variables.

## Privacy

It sends the first 500 characters of your draft to your local Ollama at `localhost:11434`. Fully offline, nothing leaves your machine.

## Screenshots

![Claude Code Grammar Check example](https://raw.githubusercontent.com/vinta/hal-9000/main/assets/claude-code-grammar-check.png)
