Skip to content

Commit

Permalink
✨ 罵倒には「お」を付けない (close #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Jun 19, 2022
1 parent 9a0daa0 commit 36afbf0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ojosama_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ func TestConvert(t *testing.T) {
opt: nil,
wantErr: false,
},
{
desc: "正常系: 罵倒には「お」を付けませんのよ",
src: "カス",
want: "カス",
opt: nil,
wantErr: false,
},
}

for _, tt := range tests {
Expand Down
12 changes: 12 additions & 0 deletions rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,18 @@ var (
},
},
},
{
Conditions: []convertCondition{
{
Type: convertTypeFeatures,
Value: []string{"名詞", "固有名詞", "一般"},
},
{
Type: convertTypeSurface,
Value: []string{"カス"},
},
},
},
}

convertRules = []convertRule{
Expand Down

0 comments on commit 36afbf0

Please sign in to comment.