# 全角英数字と半角カナをまとめて正規化（日本語テキスト）

**Use case:** 

日本語のテキストの表記ゆれをまとめて直します。全角の英数字（ＡＢＣ１２３）は半角に、半角カナ（ｶﾀｶﾅ）は全角に、濁点の分かれた文字は1字に、ダッシュと長音は1種類にそろえます。URL・メールアドレス・コードブロックは変えません。テキストを貼るか、スクレイパーなどの出力のデータセットを選んで実行します。

## Input

```json
{
  "texts": [
    "ﾌﾟﾚﾐｱﾑﾌﾟﾗﾝ　月額１，９８０円（税込）\n対象：ＩＤ登録済みのお客様。お問い合わせは support@example.com へ",
    "ｷｬﾝﾍﾟｰﾝ期間は２０２６／１１／０１～２０２６／１１／３０です。\n詳しくは https://example.com/campaign をご覧ください。"
  ],
  "textFields": [
    "text"
  ],
  "metadataFields": [
    "url",
    "title"
  ],
  "splitIntoChunks": false,
  "maxChunkChars": 500,
  "chunkOverlapChars": 50,
  "unicodeNormalization": "nfc",
  "fullwidthAscii": "alphanumeric",
  "halfwidthKatakana": true,
  "composeVoicedMarks": true,
  "presentationForms": true,
  "unifyDashes": true,
  "removeInvisibleCharacters": true,
  "normalizeWhitespace": true,
  "spacesBetweenJapanese": "letterSpaced",
  "removeSpacesBetweenJapaneseAndLatin": false,
  "joinBrokenLines": true,
  "removePageNumbersAndHeaders": false,
  "punctuationStyle": "keep"
}
```

## Output

```json
{
  "documentIndex": {
    "label": "Document index",
    "format": "integer"
  },
  "chunkIndex": {
    "label": "Chunk index",
    "format": "integer"
  },
  "charCount": {
    "label": "Characters",
    "format": "integer"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "metadata": {
    "label": "Metadata",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Japanese Text Normalizer & RAG Chunker Actor is ready to run with the inputs already set for "全角英数字と半角カナをまとめて正規化（日本語テキスト）". [Sign up or log in](https://console.apify.com/create-task-from-example/jTv1slGX7k1ZVzeML) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "全角英数字と半角カナをまとめて正規化（日本語テキスト）" task

The Japanese Text Normalizer & RAG Chunker Actor will start running based on the input automatically. You can also change all the input fields, like texts, text fields, and more, to match your specific use case.

### 3. Receive the "全角英数字と半角カナをまとめて正規化（日本語テキスト）" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as document index, chunk index, characters, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "全角英数字と半角カナをまとめて正規化（日本語テキスト）" task via API](https://apify.com/quietworkslab/japanese-text-normalizer.md).

## FAQ

### 全角の記号も半角になりますか？

既定（alphanumeric）では、全角の英字と数字だけを半角にし、「（）」「：」などの全角の記号は日本語の文の中で自然なのでそのまま残します。記号も半角にしたいときは fullwidthAscii を all にします。

### URL やメールアドレスは変わりますか？

Japanese Text Normalizer は URL・メールアドレス・コードブロックを変えません。リンクやコードはそのまま使えます。

### 料金はいくらですか？

Japanese Text Normalizer は入力1,000字ごとに $0.0001（100万字で $0.10）です。1文書は最低100字として数えます。ほかに Apify の Actor の開始のイベントがかかります。

## About this Actor

This example demonstrates how to use [Japanese Text Normalizer & RAG Chunker](https://apify.com/quietworkslab/japanese-text-normalizer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/quietworkslab/japanese-text-normalizer.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/quietworkslab/japanese-text-normalizer.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
