Repository
Current version released
3 years ago
Dependencies
deno.land/x
What
This is an attempt to detect gomamayo, a play on words, using MeCab. Only work on Japanese.
Getting Started
Dependencies
- deno
- MeCab
- MeCab dictionary We recommend the use of mecab-ipadic-neologd. (https://github.com/neologd/mecab-ipadic-neologd)
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.