Skip to content

Commit

Permalink
feat: 🎸 多くの検索スキップ語を入れてキャラピックアップの精度をより高めた (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer committed Jun 12, 2021
1 parent 8bb904e commit 62c802a
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions app/lib/suikoden_database/pickup_character_names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,53 @@ def skip_word?(word)
# check_words の中身を連続で見ていった際に、これらの語の場合はキャラ名サーチをしない
# ここでは、「check_wordsに現れている語の中で除外する語」を指定する
# そもそも check_words に含まれていない語はここではどうしようもない
def skip_words
def skip_words # rubocop:disable Metrics/MethodLength
[
'者',
'い',
'さま',
'子',
'お',
'題',
'話',
'だ',
'枚',
'ます',
't',
'なっ',
'た',
'時',
'元',
'軍',
'いる',
'話',
'だ',
'題',
'する',
'時',
'なぁ',
'まし',
'た',
'ます',
'お',
':/',
'z',
'63z',
'さ',
'せ',
'たい',
'話',
'OT',
'y',
'事',
'軍',
'料',
'理',
'長',
'小',
'人',
'公',
'人公',
'様',
'票',
'/',
Expand Down Expand Up @@ -74,7 +119,7 @@ def skip_words
'幻水',
'バー',
'ッ',
]
].uniq
end
end
end
Expand Down

0 comments on commit 62c802a

Please sign in to comment.