|
5 | 5 |
|
6 | 6 | /// Common English stop words for keyword filtering. |
7 | 7 | pub const STOPWORDS: &[&str] = &[ |
8 | | - "a", "an", "the", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", |
9 | | - "do", "does", "did", "will", "would", "could", "should", "may", "might", "must", "shall", |
10 | | - "can", "need", "dare", "ought", "used", "to", "of", "in", "for", "on", "with", "at", "by", |
11 | | - "from", "as", "into", "through", "during", "before", "after", "above", "below", "between", |
12 | | - "under", "again", "further", "then", "once", "here", "there", "when", "where", "why", "how", |
13 | | - "all", "each", "few", "more", "most", "other", "some", "such", "no", "nor", "not", "only", |
14 | | - "own", "same", "so", "than", "too", "very", "just", "and", "but", "if", "or", "because", |
15 | | - "until", "while", "about", "what", "which", "who", "whom", "this", "that", "these", "those", |
16 | | - "i", "me", "my", "myself", "we", "our", "ours", "ourselves", "you", "your", "yours", |
17 | | - "yourself", "yourselves", "he", "him", "his", "himself", "she", "her", "hers", "herself", |
18 | | - "it", "its", "itself", "they", "them", "their", "theirs", "themselves", |
| 8 | + "a", |
| 9 | + "an", |
| 10 | + "the", |
| 11 | + "is", |
| 12 | + "are", |
| 13 | + "was", |
| 14 | + "were", |
| 15 | + "be", |
| 16 | + "been", |
| 17 | + "being", |
| 18 | + "have", |
| 19 | + "has", |
| 20 | + "had", |
| 21 | + "do", |
| 22 | + "does", |
| 23 | + "did", |
| 24 | + "will", |
| 25 | + "would", |
| 26 | + "could", |
| 27 | + "should", |
| 28 | + "may", |
| 29 | + "might", |
| 30 | + "must", |
| 31 | + "shall", |
| 32 | + "can", |
| 33 | + "need", |
| 34 | + "dare", |
| 35 | + "ought", |
| 36 | + "used", |
| 37 | + "to", |
| 38 | + "of", |
| 39 | + "in", |
| 40 | + "for", |
| 41 | + "on", |
| 42 | + "with", |
| 43 | + "at", |
| 44 | + "by", |
| 45 | + "from", |
| 46 | + "as", |
| 47 | + "into", |
| 48 | + "through", |
| 49 | + "during", |
| 50 | + "before", |
| 51 | + "after", |
| 52 | + "above", |
| 53 | + "below", |
| 54 | + "between", |
| 55 | + "under", |
| 56 | + "again", |
| 57 | + "further", |
| 58 | + "then", |
| 59 | + "once", |
| 60 | + "here", |
| 61 | + "there", |
| 62 | + "when", |
| 63 | + "where", |
| 64 | + "why", |
| 65 | + "how", |
| 66 | + "all", |
| 67 | + "each", |
| 68 | + "few", |
| 69 | + "more", |
| 70 | + "most", |
| 71 | + "other", |
| 72 | + "some", |
| 73 | + "such", |
| 74 | + "no", |
| 75 | + "nor", |
| 76 | + "not", |
| 77 | + "only", |
| 78 | + "own", |
| 79 | + "same", |
| 80 | + "so", |
| 81 | + "than", |
| 82 | + "too", |
| 83 | + "very", |
| 84 | + "just", |
| 85 | + "and", |
| 86 | + "but", |
| 87 | + "if", |
| 88 | + "or", |
| 89 | + "because", |
| 90 | + "until", |
| 91 | + "while", |
| 92 | + "about", |
| 93 | + "what", |
| 94 | + "which", |
| 95 | + "who", |
| 96 | + "whom", |
| 97 | + "this", |
| 98 | + "that", |
| 99 | + "these", |
| 100 | + "those", |
| 101 | + "i", |
| 102 | + "me", |
| 103 | + "my", |
| 104 | + "myself", |
| 105 | + "we", |
| 106 | + "our", |
| 107 | + "ours", |
| 108 | + "ourselves", |
| 109 | + "you", |
| 110 | + "your", |
| 111 | + "yours", |
| 112 | + "yourself", |
| 113 | + "yourselves", |
| 114 | + "he", |
| 115 | + "him", |
| 116 | + "his", |
| 117 | + "himself", |
| 118 | + "she", |
| 119 | + "her", |
| 120 | + "hers", |
| 121 | + "herself", |
| 122 | + "it", |
| 123 | + "its", |
| 124 | + "itself", |
| 125 | + "they", |
| 126 | + "them", |
| 127 | + "their", |
| 128 | + "theirs", |
| 129 | + "themselves", |
19 | 130 | ]; |
20 | 131 |
|
21 | 132 | /// Extract keywords from a query string, filtering stop words. |
|
0 commit comments