A simple formatter for Japanese Alexa Skill content. Provides helper functions to convert written Japanese text into natural speech-friendly expressions suitable for Alexa responses. Version 2.2.2 is the latest. It handles common conversions such as replacing periods with polite forms, expanding symbols like '&' to 'アンド', and formatting date ranges. Differentiates itself by being lightweight and specific to Japanese Alexa skill development, complementing the ask-sdk ecosystem.
npm install ask-jp-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates the three main formatting functions: replaceDescription, replaceSpeechContent, and replaceLabel with example Japanese text.
Use ESM imports (import { ... } from 'ask-jp-formatter') instead of require() for best compatibility.Upgrade to v1.5.0 or later to get proper date range conversion like (1990年1月 - ) -> (1990年1月生まれ).
Ensure your input text is already in a mix of casual/polite as needed; the function only modifies final stops and some phrase endings.
Run 'npm install ask-jp-formatter' and ensure your project's package.json includes it.
Use named imports: import { replaceDescription } from 'ask-jp-formatter'.No dependency data recorded yet.