/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * Stopword list for the online dnsNotFound Search CTA keyword extractor * (bug 2057648). This is a deliberate fork of the shared ENGLISH_STOP_WORDS * (chrome://global/content/ml/NLPUtils.sys.mjs), owned by URLKeywordAnalyzer, * for two reasons: * * 1. Decoupling. The shared list is also consumed by Smart Tab Grouping; a * retune there would otherwise silently shift the CTA's derived queries, * and our content-free telemetry could not detect the regression. * 2. Curation. For URL -> query recovery the list is tuned for path segments * rather than prose: it keeps content words the general list * over-aggressively drops, and folds in URL-structure words that only * ever describe page plumbing. * * The curated list was settled in bug 2055619 comment 3. Words present in the * shared list but intentionally OMITTED here, so they survive into a query: * "fire", "interest", "name", "part", "system", and the spelled-out numbers * ("one" through "twelve", "twenty", "fifty", "hundred", ...). */ export const SEARCH_CTA_STOP_WORDS = Object.freeze([ // ---- function words ---- "a", "about", "above", "across", "after", "afterwards", "again", "against", "all", "almost", "alone", "along", "already", "also", "although", "always", "am", "among", "amongst", "amoungst", "an", "and", "another", "any", "anyhow", "anyone", "anything", "anyway", "anywhere", "are", "around", "as", "at", "be", "became", "because", "become", "becomes", "becoming", "been", "before", "beforehand", "behind", "being", "below", "beside", "besides", "between", "beyond", "both", "but", "by", "can", "cannot", "cant", "co", "could", "couldnt", "de", "do", "done", "down", "due", "during", "each", "eg", "either", "else", "elsewhere", "enough", "etc", "even", "ever", "every", "everyone", "everything", "everywhere", "except", "few", "for", "former", "formerly", "from", "further", "get", "give", "go", "google", "had", "has", "hasnt", "have", "he", "hence", "her", "here", "hereafter", "hereby", "herein", "hereupon", "hers", "herself", "him", "himself", "his", "how", "however", "i", "ie", "if", "in", "inc", "indeed", "into", "is", "it", "its", "itself", "keep", "latter", "latterly", "least", "less", "ltd", "many", "may", "me", "meanwhile", "might", "more", "moreover", "most", "mostly", "much", "must", "my", "myself", "namely", "neither", "never", "nevertheless", "next", "no", "nobody", "none", "noone", "nor", "not", "nothing", "now", "nowhere", "of", "off", "often", "on", "once", "only", "onto", "or", "other", "others", "otherwise", "our", "ours", "ourselves", "out", "over", "own", "per", "perhaps", "please", "put", "rather", "re", "same", "search", "see", "seem", "seemed", "seeming", "seems", "several", "she", "should", "since", "so", "some", "somehow", "someone", "something", "sometime", "sometimes", "somewhere", "still", "such", "take", "than", "that", "the", "their", "them", "themselves", "then", "thence", "there", "thereafter", "thereby", "therefore", "therein", "thereupon", "these", "they", "this", "those", "though", "through", "throughout", "thru", "thus", "to", "together", "too", "toward", "towards", "under", "until", "up", "upon", "very", "via", "was", "we", "were", "what", "whatever", "when", "whence", "whenever", "where", "whereafter", "whereas", "whereby", "wherein", "whereupon", "wherever", "whether", "which", "while", "whither", "who", "whoever", "whom", "whose", "why", "will", "with", "within", "without", "would", "yet", "you", "your", "yours", "yourself", "yourselves", // ---- URL-structure words ---- "article", "blog", "category", "home", "http", "https", "index", "page", "tag", "www", // site plumbing "archive", "content", "details", "files", "images", "uploads", "wiki", "wp", // asset / format extensions "css", "html", "png", // api versioning "v2", // locale "en", // month abbreviations "apr", "aug", "dec", "feb", "jan", "jul", "jun", "nov", "oct", "sep", ]);