Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接続の"である" #10

Closed
azu opened this issue May 6, 2016 · 2 comments · Fixed by textlint-ja/analyze-desumasu-dearu#4
Closed

接続の"である" #10

azu opened this issue May 6, 2016 · 2 comments · Fixed by textlint-ja/analyze-desumasu-dearu#4

Comments

@azu
Copy link
Member

azu commented May 6, 2016

"ではなく"とかはさすがにデフォルトでは厳しい。false positiveな感じがする

動的にメソッドを追加するだけはなく、既存の実装を上書きするmonkey patchのようなものもプラグインとして追加することができます。

    {
        "word_id": 3168910,
        "word_type": "KNOWN",
        "word_position": 11,
        "surface_form": "する",
        "pos": "動詞",
        "pos_detail_1": "自立",
        "pos_detail_2": "*",
        "pos_detail_3": "*",
        "conjugated_type": "サ変・スル",
        "conjugated_form": "基本形",
        "basic_form": "する",
        "reading": "スル",
        "pronunciation": "スル"
    },
    {
        "word_id": 2594860,
        "word_type": "KNOWN",
        "word_position": 13,
        "surface_form": "だけ",
        "pos": "助詞",
        "pos_detail_1": "副助詞",
        "pos_detail_2": "*",
        "pos_detail_3": "*",
        "conjugated_type": "*",
        "conjugated_form": "*",
        "basic_form": "だけ",
        "reading": "ダケ",
        "pronunciation": "ダケ"
    },
    {
        "word_id": 305030,
        "word_type": "KNOWN",
        "word_position": 15,
        "surface_form": "で",
        "pos": "助動詞",
        "pos_detail_1": "*",
        "pos_detail_2": "*",
        "pos_detail_3": "*",
        "conjugated_type": "特殊・ダ",
        "conjugated_form": "連用形",
        "basic_form": "だ",
        "reading": "デ",
        "pronunciation": "デ"
    },
@azu
Copy link
Member Author

azu commented May 6, 2016

このパターンだけでは難しい部分が出てくると思います

    {
        "word_id": 305030,
        "word_type": "KNOWN",
        "word_position": 9,
        "surface_form": "で",
        "pos": "助動詞",
        "pos_detail_1": "*",
        "pos_detail_2": "*",
        "pos_detail_3": "*",
        "conjugated_type": "特殊・ダ",
        "conjugated_form": "連用形",
        "basic_form": "だ",
        "reading": "デ",
        "pronunciation": "デ"
    },

azu added a commit to textlint-ja/analyze-desumasu-dearu that referenced this issue May 6, 2016
"ではなく" というような表現は常体(である調)として認識しない

fix textlint-ja/textlint-rule-no-mix-dearu-desumasu#10
@azu
Copy link
Member Author

azu commented May 6, 2016

3.0.4 で厳密な方向へ変更

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant