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

feat: 🎸 多くの検索スキップ語を入れてキャラピックアップの精度をより高めた #130

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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