diff --git a/dict/2.1.6.yml b/dict/2.1.6.yml index ba33be8..bff3a40 100644 --- a/dict/2.1.6.yml +++ b/dict/2.1.6.yml @@ -4,376 +4,376 @@ version: 1 rules: - expected: アドベンチャー$1 - patterns: /アドベンチャ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アドベンチャ([^ー][^ァ-ン])/ - expected: アイデンティティー$1 - patterns: /アイデンティティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アイデンティティ([^ー][^ァ-ン])/ - expected: アクセサリー$1 - patterns: /アクセサリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アクセサリ([^ー][^ァ-ン])/ - expected: アセンブラー$1 - patterns: /アセンブラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アセンブラ([^ー][^ァ-ン])/ - expected: アダプター$1 - patterns: /アダプタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アダプタ([^ー][^ァ-ン])/ - expected: アドバイザー$1 - patterns: /アドバイザ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アドバイザ([^ー][^ァ-ン])/ - expected: アブソーバー$1 - patterns: /アブソーバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /アブソーバ([^ー][^ァ-ン])/ - expected: イレーサー$1 - patterns: /イレーサ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /イレーサ([^ー][^ァ-ン])/ - expected: インジケーター$1 - patterns: /インジケータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /インジケータ([^ー][^ァ-ン])/ - expected: インストラクター$1 - patterns: /インストラクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /インストラクタ([^ー][^ァ-ン])/ - expected: インタビュー$1 - patterns: /インタビュ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /インタビュ([^ー][^ァ-ン])/ - expected: エクスプローラー$1 - patterns: /エクスプローラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エクスプローラ([^ー][^ァ-ン])/ - expected: エスカレーター$1 - patterns: /エスカレータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エスカレータ([^ー][^ァ-ン])/ - expected: エディター$1 - patterns: /エディタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エディタ([^ー][^ァ-ン])/ - expected: エネルギー$1 - patterns: /エネルギ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エネルギ([^ー][^ァ-ン])/ - expected: エレベーター$1 - patterns: /エレベータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エレベータ([^ー][^ァ-ン])/ - expected: エントリー$1 - patterns: /エントリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /エントリ([^ー][^ァ-ン])/ - expected: オペレーター$1 - patterns: /オペレータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /オペレータ([^ー][^ァ-ン])/ - expected: カウンター$1 - patterns: /カウンタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /カウンタ([^ー][^ァ-ン])/ - expected: カスタマー$1 - patterns: /カスタマ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /カスタマ([^ー][^ァ-ン])/ - expected: カテゴリー$1 - patterns: /カテゴリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /カテゴリ([^ー][^ァ-ン])/ - expected: カプラー$1 - patterns: /カプラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /カプラ([^ー][^ァ-ン])/ - expected: カレンダー$1 - patterns: /カレンダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /カレンダ([^ー][^ァ-ン])/ - expected: キャラクター$1 - patterns: /キャラクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /キャラクタ([^ー][^ァ-ン])/ - expected: クーラー$1 - patterns: /クーラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /クーラ([^ー][^ァ-ン])/ - expected: クリーナー$1 - patterns: /クリーナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /クリーナ([^ー][^ァ-ン])/ - expected: コーディネーター$1 - patterns: /コーディネータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コーディネータ([^ー][^ァ-ン])/ - expected: コーナー$1 - patterns: /コーナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コーナ([^ー][^ァ-ン])/ - expected: コネクター$1 - patterns: /コネクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コネクタ([^ー][^ァ-ン])/ - expected: コミュニティー$1 - patterns: /コミュニティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コミュニティ([^ー][^ァ-ン])/ - expected: コンダクター$1 - patterns: /コンダクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コンダクタ([^ー][^ァ-ン])/ - expected: コンデンサー$1 - patterns: /コンデンサ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コンデンサ([^ー][^ァ-ン])/ - expected: コントローラー$1 - patterns: /コントローラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コントローラ([^ー][^ァ-ン])/ - expected: コンバーター$1 - patterns: /コンバータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コンバータ([^ー][^ァ-ン])/ - expected: コンパイラー$1 - patterns: /コンパイラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コンパイラ([^ー][^ァ-ン])/ - expected: コンピューター$1 - patterns: /コンピュータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /コンピュータ([^ー][^ァ-ン])/ - expected: サーバー$1 - patterns: /サーバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /サーバ([^ー][^ァ-ン])/ - expected: サマリー$1 - patterns: /サマリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /サマリ([^ー][^ァ-ン])/ - expected: ジェネレーター$1 - patterns: /ジェネレータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ジェネレータ([^ー][^ァ-ン])/ - expected: シミュレーター$1 - patterns: /シミュレータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /シミュレータ([^ー][^ァ-ン])/ - expected: シャッター$1 - patterns: /シャッタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /シャッタ([^ー][^ァ-ン])/ - expected: シリンダー$1 - patterns: /シリンダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /シリンダ([^ー][^ァ-ン])/ - expected: シンナー$1 - patterns: /シンナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /シンナ([^ー][^ァ-ン])/ - expected: スーパーバイザー$1 - patterns: /スーパーバイザ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /スーパーバイザ([^ー][^ァ-ン])/ - expected: スキャナー$1 - patterns: /スキャナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /スキャナ([^ー][^ァ-ン])/ - expected: スタッカー$1 - patterns: /スタッカ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /スタッカ([^ー][^ァ-ン])/ - expected: セーバー$1 - patterns: /セーバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /セーバ([^ー][^ァ-ン])/ - expected: セーフティー$1 - patterns: /セーフティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /セーフティ([^ー][^ァ-ン])/ - expected: セキュリティー$1 - patterns: /セキュリティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /セキュリティ([^ー][^ァ-ン])/ - expected: セパレーター$1 - patterns: /セパレータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /セパレータ([^ー][^ァ-ン])/ - expected: セレクター$1 - patterns: /セレクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /セレクタ([^ー][^ァ-ン])/ - expected: センサー$1 - patterns: /センサ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /センサ([^ー][^ァ-ン])/ - expected: ソーター$1 - patterns: /ソータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ソータ([^ー][^ァ-ン])/ - expected: ダイアリー$1 - patterns: /ダイアリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ダイアリ([^ー][^ァ-ン])/ - expected: タイプライター$1 - patterns: /タイプライタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /タイプライタ([^ー][^ァ-ン])/ - expected: タイマー$1 - patterns: /タイマ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /タイマ([^ー][^ァ-ン])/ - expected: チャージャー$1 - patterns: /チャージャ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /チャージャ([^ー][^ァ-ン])/ - expected: ディレクター$1 - patterns: /ディレクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ディレクタ([^ー][^ァ-ン])/ - expected: ディレクトリー$1 - patterns: /ディレクトリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ディレクトリ([^ー][^ァ-ン])/ - expected: デコーダー$1 - patterns: /デコーダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /デコーダ([^ー][^ァ-ン])/ - expected: デリバリー$1 - patterns: /デリバリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /デリバリ([^ー][^ァ-ン])/ - expected: ドライバー$1 - patterns: /ドライバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ドライバ([^ー][^ァ-ン])/ - expected: トランシーバー$1 - patterns: /トランシーバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /トランシーバ([^ー][^ァ-ン])/ - expected: トランスミッター$1 - patterns: /トランスミッタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /トランスミッタ([^ー][^ァ-ン])/ - expected: トレーナー$1 - patterns: /トレーナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /トレーナ([^ー][^ァ-ン])/ - expected: パーティー$1 - patterns: /パーティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /パーティ([^ー][^ァ-ン])/ - expected: バイナリー$1 - patterns: /バイナリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バイナリ([^ー][^ァ-ン])/ - expected: ハイパー$1 - patterns: /ハイパ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ハイパ([^ー][^ァ-ン])/ - expected: バインダー$1 - patterns: /バインダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バインダ([^ー][^ァ-ン])/ - expected: バインダリー$1 - patterns: /バインダリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バインダリ([^ー][^ァ-ン])/ - expected: バッテリー$1 - patterns: /バッテリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バッテリ([^ー][^ァ-ン])/ - expected: バッファー$1 - patterns: /バッファ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バッファ([^ー][^ァ-ン])/ - expected: バナー$1 - patterns: /バナ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バナ([^ー][^ァ-ン])/ - expected: バラエティー$1 - patterns: /バラエティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /バラエティ([^ー][^ァ-ン])/ - expected: パラメーター$1 - patterns: /パラメータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /パラメータ([^ー][^ァ-ン])/ - expected: ハンディー$1 - patterns: /ハンディ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ハンディ([^ー][^ァ-ン])/ - expected: ハンドラー$1 - patterns: /ハンドラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ハンドラ([^ー][^ァ-ン])/ - expected: ビューアー$1 - patterns: /ビューア((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ビューア([^ー][^ァ-ン])/ - expected: ファインダー$1 - patterns: /ファインダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ファインダ([^ー][^ァ-ン])/ - expected: ファミリー$1 - patterns: /ファミリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ファミリ([^ー][^ァ-ン])/ - expected: フィーダー$1 - patterns: /フィーダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フィーダ([^ー][^ァ-ン])/ - expected: フィニッシャー$1 - patterns: /フィニッシャ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フィニッシャ([^ー][^ァ-ン])/ - expected: フィルター$1 - patterns: /フィルタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フィルタ([^ー][^ァ-ン])/ - expected: フォルダー$1 - patterns: /フォルダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フォルダ([^ー][^ァ-ン])/ - expected: フッター$1 - patterns: /フッタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フッタ([^ー][^ァ-ン])/ - expected: フューザー$1 - patterns: /フューザ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フューザ([^ー][^ァ-ン])/ - expected: プライマリー$1 - patterns: /プライマリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プライマリ([^ー][^ァ-ン])/ - expected: ブラウザー$1 - patterns: /ブラウザ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ブラウザ([^ー][^ァ-ン])/ - expected: プリンター$1 - patterns: /プリンタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プリンタ([^ー][^ァ-ン])/ - expected: プレーヤー$1 - patterns: /プレーヤ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プレーヤ([^ー][^ァ-ン])/ - expected: プロジェクター$1 - patterns: /プロジェクタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プロジェクタ([^ー][^ァ-ン])/ - expected: プロセッサー$1 - patterns: /プロセッサ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プロセッサ([^ー][^ァ-ン])/ - expected: プロッター$1 - patterns: /プロッタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プロッタ([^ー][^ァ-ン])/ - expected: フロッピー$1 - patterns: /フロッピ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /フロッピ([^ー][^ァ-ン])/ - expected: プロバイダー$1 - patterns: /プロバイダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /プロバイダ([^ー][^ァ-ン])/ - expected: ヘッダー$1 - patterns: /ヘッダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ヘッダ([^ー][^ァ-ン])/ - expected: ポインター$1 - patterns: /ポインタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ポインタ([^ー][^ァ-ン])/ - expected: ボディー$1 - patterns: /ボディ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ボディ([^ー][^ァ-ン])/ - expected: ポリシー$1 - patterns: /ポリシ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ポリシ([^ー][^ァ-ン])/ - expected: マーカー$1 - patterns: /マーカ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /マーカ([^ー][^ァ-ン])/ - expected: マスター$1 - patterns: /マスタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /マスタ([^ー][^ァ-ン])/ - expected: マネージャー$1 - patterns: /マネージャ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /マネージャ([^ー][^ァ-ン])/ - expected: メーカー$1 - patterns: /メーカ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /メーカ([^ー][^ァ-ン])/ - expected: メーター$1 - patterns: /メータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /メータ([^ー][^ァ-ン])/ - expected: メモリー$1 - patterns: /メモリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /メモリ([^ー][^ァ-ン])/ - expected: メロディー$1 - patterns: /メロディ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /メロディ([^ー][^ァ-ン])/ - expected: メンバー$1 - patterns: /メンバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /メンバ([^ー][^ァ-ン])/ - expected: モーター$1 - patterns: /モータ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /モータ([^ー][^ァ-ン])/ - expected: モジュラー$1 - patterns: /モジュラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /モジュラ([^ー][^ァ-ン])/ - expected: モニター$1 - patterns: /モニタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /モニタ([^ー][^ァ-ン])/ - expected: ユーザー$1 - patterns: /ユーザ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ユーザ([^ー][^ァ-ン])/ - expected: ユーティリティー$1 - patterns: /ユーティリティ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ユーティリティ([^ー][^ァ-ン])/ - expected: ライター$1 - patterns: /ライタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ライタ([^ー][^ァ-ン])/ - expected: ライブラリー$1 - patterns: /ライブラリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ライブラリ([^ー][^ァ-ン])/ - expected: ラスター$1 - patterns: /ラスタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ラスタ([^ー][^ァ-ン])/ - expected: リーダー$1 - patterns: /リーダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /リーダ([^ー][^ァ-ン])/ - expected: リポジトリー$1 - patterns: /リポジトリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /リポジトリ([^ー][^ァ-ン])/ - expected: ルーラー$1 - patterns: /ルーラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ルーラ([^ー][^ァ-ン])/ - expected: レイヤー$1 - patterns: /レイヤ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レイヤ([^ー][^ァ-ン])/ - expected: レーダー$1 - patterns: /レーダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レーダ([^ー][^ァ-ン])/ - expected: レコーダー$1 - patterns: /レコーダ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レコーダ([^ー][^ァ-ン])/ - expected: レシーバー$1 - patterns: /レシーバ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レシーバ([^ー][^ァ-ン])/ - expected: レジスター$1 - patterns: /レジスタ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レジスタ([^ー][^ァ-ン])/ - expected: レジストリー$1 - patterns: /レジストリ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /レジストリ([^ー][^ァ-ン])/ - expected: ローラー$1 - patterns: /ローラ((?:[^ーァ-ン]){1,2}|(?=$))/ + patterns: /ローラ([^ー][^ァ-ン])/ diff --git a/test/2.1.6-test.js b/test/2.1.6-test.js index 5f0f650..c054fe0 100644 --- a/test/2.1.6-test.js +++ b/test/2.1.6-test.js @@ -12,22 +12,11 @@ tester.run("2.1.6.カタカナの長音", rule, { { text: "フィルタをかける", output: "フィルターをかける", - errors: [{ message: "フィルタをか => フィルターをか" }] - }, - { - text: "フィルタ", - output: "フィルター", - errors: [{ message: "フィルタ => フィルター" }] - }, - { - text: "フィルタ。", - output: "フィルター。", - errors: [{ message: "フィルタ。 => フィルター。" }] - }, - { - text: "フィルタ、", - output: "フィルター、", - errors: [{ message: "フィルタ、 => フィルター、" }] + errors: [ + { + message: "フィルタをか => フィルターをか" + } + ] } ] }); diff --git a/test/fixtures/input.md b/test/fixtures/input.md index d310d08..d7d49ea 100644 --- a/test/fixtures/input.md +++ b/test/fixtures/input.md @@ -21,12 +21,6 @@ フィルタをかける -フィルタ - -フィルタ。 - -フィルタ、 - 200円はダメ おやつは300円まで diff --git a/test/fixtures/output.md b/test/fixtures/output.md index 45a6734..a2f7afd 100644 --- a/test/fixtures/output.md +++ b/test/fixtures/output.md @@ -21,12 +21,6 @@ フィルターをかける -フィルター - -フィルター。 - -フィルター、 - 200円はダメ おやつは300円まで