Skip to main content
Deno 2 is finally here 🎉️
Learn more

What

This is an attempt to detect gomamayo, a play on words, using MeCab. Only work on Japanese.

Getting Started

Dependencies

Example

deno run --allow-run --allow-read https://raw.githubusercontent.com/na2na-p/gomamayo-deno/master/mod.ts 株式公開買付

Example Result

{
  isGomamayo: true,
  combo: 1,
  detail: [
    {
      surface: "株式公開|買付",
      dimension: 2,
      rawResult1: {
        surface: "株式公開",
        feature: "名詞",
        featureDetails: [Array],
        conjugationForms: [Array],
        originalForm: "株式公開",
        reading: "カブシキコウカイ",
        pronunciation: "カブシキコーカイ"
      },
      rawResult2: {
        surface: "買付",
        feature: "名詞",
        featureDetails: [Array],
        conjugationForms: [Array],
        originalForm: "買い付け",
        reading: "カイツケ",
        pronunciation: "カイツケ"
      }
    }
  ]
}

License

This software is released under the MIT License.