Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module improves Japanese text search accuracy by normalizing variations in characters, such as converting full-width to half-width characters and standardizing spacing. It applies rules similar to those used in the NEologd dictionary for better search results.

Search API Japanese Normalizer is a module that provides a processor for the Drupal Search API module. This processor standardizes variations in Japanese text, improving search accuracy.

Features

This module normalizes Japanese text variations according to the following rules:

  • Convert full-width alphanumeric characters to half-width.
  • Convert half-width Katakana to full-width Katakana.
  • Normalize characters similar to hyphen-minus.
  • Normalize characters similar to the long vowel mark.
  • Replace consecutive long vowel marks with a single one.
  • Remove characters similar to the tilde (~).
  • Convert full-width symbols commonly used in half-width form to half-width.
  • Convert half-width symbols commonly used in full-width form to full-width.
  • Convert full-width spaces to half-width spaces.
  • Replace multiple consecutive half-width spaces with a single one.
  • Remove half-width spaces between "Hiragana, full-width Katakana, half-width Katakana, Kanji, and full-width symbols."
  • Remove half-width spaces between "Hiragana, full-width Katakana, half-width Katakana, Kanji, full-width symbols" and "half-width alphanumeric characters."

This module is implemented with reference to the normalization rules used in NEologd, a dictionary for morphological analyzers. For detailed conversion rules, please refer to NEologd Normalization Rules.

Example Conversions

Before After ドルーパル ドルーパル スーーパーーー スーパー アルゴリズム C アルゴリズムC

Post-Installation

After installation, the "Japanese Normalizer" processor will be added to the "Processors" tab in the Search API index settings. Enabling this processor will automatically correct variations in Japanese text, improving search accuracy.

Additional Requirements

The Search API module is required for this module to function. For setup instructions, please refer to the Search API module documentation.

Similar projects

  • Search API Kana Convert - A module specializing in converting between Hiragana, Katakana, and Romaji representations.

日本語による説明はこちら

Activity

Total releases
2
First release
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
1.0.x-dev Dev Feb 2, 2025
1.0.0-beta1 Pre-release Jan 31, 2025