https://github.com/statiolake/gomamayo-rs
https://github.com/statiolake/gomamayo-rs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/statiolake/gomamayo-rs
- Owner: statiolake
- Created: 2024-02-23T14:34:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T15:33:37.000Z (over 2 years ago)
- Last Synced: 2024-04-20T00:52:15.854Z (about 2 years ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gomamayo
ゴママヨを検知します。
## 使い方 (バイナリ実行)
```
cargo run ゴママヨ 太鼓公募募集終了 オレンジジュース
ゴママヨ: 1項1次のゴママヨです。
太鼓公募募集終了: 3項2次のゴママヨです。
オレンジジュース: ゴママヨではありません。
```
## 使い方 (ライブラリとして)
あなたのプロジェクトの Cargo.toml の `[dependencies]` 欄に以下のように追記してください。
```
[dependencies]
gomamayo = { git = "https://github.com/statiolake/gomamayo-rs" }
```
`gomamayo::analyze()` を使って解析することができます。
## テスト
参考サイトに載っていたいくつかの例はユニットテストに含まれています。
(テスト内容は src/lib.rs を参照のこと)
```
cargo test
```
## 参考
- https://thinaticsystem.com/glossary/gomamayo
- https://3qua9la-notebook.hatenablog.com/entry/2021/04/10/220317
- https://github.com/jugesuke/gomamayo/blob/master/gomamayo.go