Commit: https://github.com/hosmada/emr/commit/2c27eb5381d082e0a9745085d384b8fbe74e83e6
What changed:
- Renamed two
Token#token_typevalues for clarity:word→japanese_wordandforeign→latin_word. - Added
SuikaTokenizer.join(tokens), a shared helper that reconstructs text from tokens correctly instead of naively joining with a fixed separator. It only inserts a space between two consecutive "space-delimited" tokens (Latin words, abbreviations, and numbers) — Japanese tokens never get a space. - Wired
Meeting#utterancesandReviewWorkflow#phi_review_datato use this new helper instead oftokens.map(&:text).join(" "). - Updated the token test factory to auto-classify
token_typefromtextvia the real tokenizer instead of hardcoding a default.