mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
remove some stop words
This commit is contained in:
@@ -57,42 +57,11 @@ func replaceChars(word string) string {
|
||||
|
||||
func isStopWord(word string) bool {
|
||||
switch word {
|
||||
case "a", "about", "above", "after", "again", "against", "all", "am", "an",
|
||||
"and", "any", "are", "as", "at", "be", "because", "been", "before",
|
||||
"being", "below", "between", "both", "but", "by", "can", "did", "do",
|
||||
"does", "doing", "don", "down", "during", "each", "few", "for", "from",
|
||||
"further", "had", "has", "have", "having", "he", "her", "here", "hers",
|
||||
"herself", "him", "himself", "his", "how", "i", "if", "in", "into", "is",
|
||||
"it", "its", "itself", "just", "me", "more", "most", "my", "myself",
|
||||
"no", "nor", "not", "now", "of", "off", "on", "once", "only", "or",
|
||||
"other", "our", "ours", "ourselves", "out", "over", "own", "s", "same",
|
||||
"she", "should", "so", "some", "such", "t", "than", "that", "the", "their",
|
||||
"theirs", "them", "themselves", "then", "there", "these", "they",
|
||||
"this", "those", "through", "to", "too", "under", "until", "up",
|
||||
"very", "was", "we", "were", "what", "when", "where", "which", "while",
|
||||
"who", "whom", "why", "will", "with", "you", "your", "yours", "yourself",
|
||||
"yourselves", "и", "в", "во", "не", "что", "он", "на", "я", "с",
|
||||
"со", "как", "а", "то", "все", "она", "так", "его",
|
||||
"но", "да", "ты", "к", "у", "же", "вы", "за", "бы",
|
||||
"по", "только", "ее", "мне", "было", "вот", "от",
|
||||
"меня", "еще", "нет", "о", "из", "ему", "теперь",
|
||||
"когда", "даже", "ну", "вдруг", "ли", "если", "уже",
|
||||
"или", "ни", "быть", "был", "него", "до", "вас",
|
||||
"нибудь", "опять", "уж", "вам", "ведь", "там", "потом",
|
||||
"себя", "ничего", "ей", "может", "они", "тут", "где",
|
||||
"есть", "надо", "ней", "для", "мы", "тебя", "их",
|
||||
"чем", "была", "сам", "чтоб", "без", "будто", "чего",
|
||||
"раз", "тоже", "себе", "под", "будет", "ж", "тогда",
|
||||
"кто", "этот", "того", "потому", "этого", "какой",
|
||||
"совсем", "ним", "здесь", "этом", "один", "почти",
|
||||
"мой", "тем", "чтобы", "нее", "сейчас", "были", "куда",
|
||||
"зачем", "всех", "никогда", "можно", "при", "наконец",
|
||||
"два", "об", "другой", "хоть", "после", "над", "больше",
|
||||
"тот", "через", "эти", "нас", "про", "всего", "них",
|
||||
"какая", "много", "разве", "три", "эту", "моя",
|
||||
"впрочем", "хорошо", "свою", "этой", "перед", "иногда",
|
||||
"лучше", "чуть", "том", "нельзя", "такой", "им", "более",
|
||||
"всегда", "конечно", "всю", "между":
|
||||
case "a", "am", "an", "and", "are", "as", "at", "be",
|
||||
"by", "did", "do", "is", "of", "or", "s", "so", "t",
|
||||
"и", "в", "с", "со", "а", "но", "к", "у",
|
||||
"же", "бы", "по", "от", "о", "из", "ну",
|
||||
"ли", "ни", "нибудь", "уж", "ведь", "ж", "об":
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user