| // Copyright (C) 2022 Google LLC | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| // See the License for the specific language governing permissions and | |
| // limitations under the License. | |
| #ifndef ICING_MONKEY_TEST_MONKEY_TEST_COMMON_WORDS_H_ | |
| #define ICING_MONKEY_TEST_MONKEY_TEST_COMMON_WORDS_H_ | |
| #include <array> | |
| #include <string_view> | |
| namespace icing { | |
| namespace lib { | |
| // A bag of words in English for creating random documents. Only words that are | |
| // at least 3 letters long are included (that's kPrefixLength) so that prefix | |
| // queries are easily formed from any word in a random document. | |
| // Data source: | |
| // https://chromium.googlesource.com/chromium/src/+/HEAD/components/url_formatter/spoof_checks/common_words/data/ | |
| static constexpr std::array<std::string_view, 1000> kCommonWords = { | |
| "the", "and", "for", "that", | |
| "this", "with", "you", "not", | |
| "are", "from", "your", "all", | |
| "have", "new", "more", "was", | |
| "will", "home", "can", "about", | |
| "page", "has", "search", "free", | |
| "but", "our", "one", "other", | |
| "information", "time", "they", "site", | |
| "may", "what", "which", "their", | |
| "news", "out", "use", "any", | |
| "there", "see", "only", "his", | |
| "when", "contact", "here", "business", | |
| "who", "web", "also", "now", | |
| "help", "get", "view", "online", | |
| "first", "been", "would", "how", | |
| "were", "services", "some", "these", | |
| "click", "its", "like", "service", | |
| "than", "find", "price", "date", | |
| "back", "top", "people", "had", | |
| "list", "name", "just", "over", | |
| "state", "year", "day", "into", | |
| "email", "two", "health", "world", | |
| "next", "used", "work", "last", | |
| "most", "products", "music", "buy", | |
| "data", "make", "them", "should", | |
| "product", "system", "post", "her", | |
| "city", "add", "policy", "number", | |
| "such", "please", "available", "copyright", | |
| "support", "message", "after", "best", | |
| "software", "then", "jan", "good", | |
| "video", "well", "where", "info", | |
| "rights", "public", "books", "high", | |
| "school", "through", "each", "links", | |
| "she", "review", "years", "order", | |
| "very", "privacy", "book", "items", | |
| "company", "read", "group", "sex", | |
| "need", "many", "user", "said", | |
| "does", "set", "under", "general", | |
| "research", "university", "january", "mail", | |
| "full", "map", "reviews", "program", | |
| "life", "know", "games", "way", | |
| "days", "management", "part", "could", | |
| "great", "united", "hotel", "real", | |
| "item", "international", "center", "must", | |
| "store", "travel", "comments", "made", | |
| "development", "report", "off", "member", | |
| "details", "line", "terms", "before", | |
| "hotels", "did", "send", "right", | |
| "type", "because", "local", "those", | |
| "using", "results", "office", "education", | |
| "national", "car", "design", "take", | |
| "posted", "internet", "address", "community", | |
| "within", "states", "area", "want", | |
| "phone", "dvd", "shipping", "reserved", | |
| "subject", "between", "forum", "family", | |
| "long", "based", "code", "show", | |
| "even", "black", "check", "special", | |
| "prices", "website", "index", "being", | |
| "women", "much", "sign", "file", | |
| "link", "open", "today", "technology", | |
| "south", "case", "project", "same", | |
| "pages", "version", "section", "own", | |
| "found", "sports", "house", "related", | |
| "security", "both", "county", "american", | |
| "photo", "game", "members", "power", | |
| "while", "care", "network", "down", | |
| "computer", "systems", "three", "total", | |
| "place", "end", "following", "download", | |
| "him", "without", "per", "access", | |
| "think", "north", "resources", "current", | |
| "posts", "big", "media", "law", | |
| "control", "water", "history", "pictures", | |
| "size", "art", "personal", "since", | |
| "including", "guide", "shop", "directory", | |
| "board", "location", "change", "white", | |
| "text", "small", "rating", "rate", | |
| "government", "children", "during", "usa", | |
| "return", "students", "shopping", "account", | |
| "times", "sites", "level", "digital", | |
| "profile", "previous", "form", "events", | |
| "love", "old", "john", "main", | |
| "call", "hours", "image", "department", | |
| "title", "description", "non", "insurance", | |
| "another", "why", "shall", "property", | |
| "class", "still", "money", "quality", | |
| "every", "listing", "content", "country", | |
| "private", "little", "visit", "save", | |
| "tools", "low", "reply", "customer", | |
| "december", "compare", "movies", "include", | |
| "college", "value", "article", "york", | |
| "man", "card", "jobs", "provide", | |
| "food", "source", "author", "different", | |
| "press", "learn", "sale", "around", | |
| "print", "course", "job", "canada", | |
| "process", "teen", "room", "stock", | |
| "training", "too", "credit", "point", | |
| "join", "science", "men", "categories", | |
| "advanced", "west", "sales", "look", | |
| "english", "left", "team", "estate", | |
| "box", "conditions", "select", "windows", | |
| "photos", "gay", "thread", "week", | |
| "category", "note", "live", "large", | |
| "gallery", "table", "register", "however", | |
| "june", "october", "november", "market", | |
| "library", "really", "action", "start", | |
| "series", "model", "features", "air", | |
| "industry", "plan", "human", "provided", | |
| "yes", "required", "second", "hot", | |
| "accessories", "cost", "movie", "forums", | |
| "march", "september", "better", "say", | |
| "questions", "july", "going", "medical", | |
| "test", "friend", "come", "dec", | |
| "server", "study", "application", "cart", | |
| "staff", "articles", "san", "feedback", | |
| "again", "play", "looking", "issues", | |
| "april", "never", "users", "complete", | |
| "street", "topic", "comment", "financial", | |
| "things", "working", "against", "standard", | |
| "tax", "person", "below", "mobile", | |
| "less", "got", "blog", "party", | |
| "payment", "equipment", "login", "student", | |
| "let", "programs", "offers", "legal", | |
| "above", "recent", "park", "stores", | |
| "side", "act", "problem", "red", | |
| "give", "memory", "performance", "social", | |
| "august", "quote", "language", "story", | |
| "sell", "options", "experience", "rates", | |
| "create", "key", "body", "young", | |
| "america", "important", "field", "few", | |
| "east", "paper", "single", "age", | |
| "activities", "club", "example", "girls", | |
| "additional", "password", "latest", "something", | |
| "road", "gift", "question", "changes", | |
| "night", "hard", "texas", "oct", | |
| "pay", "four", "poker", "status", | |
| "browse", "issue", "range", "building", | |
| "seller", "court", "february", "always", | |
| "result", "audio", "light", "write", | |
| "war", "nov", "offer", "blue", | |
| "groups", "easy", "given", "files", | |
| "event", "release", "analysis", "request", | |
| "fax", "china", "making", "picture", | |
| "needs", "possible", "might", "professional", | |
| "yet", "month", "major", "star", | |
| "areas", "future", "space", "committee", | |
| "hand", "sun", "cards", "problems", | |
| "london", "washington", "meeting", "rss", | |
| "become", "interest", "child", "keep", | |
| "enter", "california", "porn", "share", | |
| "similar", "garden", "schools", "million", | |
| "added", "reference", "companies", "listed", | |
| "baby", "learning", "energy", "run", | |
| "delivery", "net", "popular", "term", | |
| "film", "stories", "put", "computers", | |
| "journal", "reports", "try", "welcome", | |
| "central", "images", "president", "notice", | |
| "god", "original", "head", "radio", | |
| "until", "cell", "color", "self", | |
| "council", "away", "includes", "track", | |
| "australia", "discussion", "archive", "once", | |
| "others", "entertainment", "agreement", "format", | |
| "least", "society", "months", "log", | |
| "safety", "friends", "sure", "faq", | |
| "trade", "edition", "cars", "messages", | |
| "marketing", "tell", "further", "updated", | |
| "association", "able", "having", "provides", | |
| "david", "fun", "already", "green", | |
| "studies", "close", "common", "drive", | |
| "specific", "several", "gold", "feb", | |
| "living", "sep", "collection", "called", | |
| "short", "arts", "lot", "ask", | |
| "display", "limited", "powered", "solutions", | |
| "means", "director", "daily", "beach", | |
| "past", "natural", "whether", "due", | |
| "electronics", "five", "upon", "period", | |
| "planning", "database", "says", "official", | |
| "weather", "mar", "land", "average", | |
| "done", "technical", "window", "france", | |
| "pro", "region", "island", "record", | |
| "direct", "conference", "environment", "records", | |
| "district", "calendar", "costs", "style", | |
| "url", "front", "statement", "update", | |
| "parts", "aug", "ever", "downloads", | |
| "early", "miles", "sound", "resource", | |
| "present", "applications", "either", "ago", | |
| "document", "word", "works", "material", | |
| "bill", "apr", "written", "talk", | |
| "federal", "hosting", "rules", "final", | |
| "adult", "tickets", "thing", "centre", | |
| "requirements", "via", "cheap", "nude", | |
| "kids", "finance", "true", "minutes", | |
| "else", "mark", "third", "rock", | |
| "gifts", "europe", "reading", "topics", | |
| "bad", "individual", "tips", "plus", | |
| "auto", "cover", "usually", "edit", | |
| "together", "videos", "percent", "fast", | |
| "function", "fact", "unit", "getting", | |
| "global", "tech", "meet", "far", | |
| "economic", "player", "projects", "lyrics", | |
| "often", "subscribe", "submit", "germany", | |
| "amount", "watch", "included", "feel", | |
| "though", "bank", "risk", "thanks", | |
| "everything", "deals", "various", "words", | |
| "linux", "jul", "production", "commercial", | |
| "james", "weight", "town", "heart", | |
| "advertising", "received", "choose", "treatment", | |
| "newsletter", "archives", "points", "knowledge", | |
| "magazine", "error", "camera", "jun", | |
| "girl", "currently", "construction", "toys", | |
| "registered", "clear", "golf", "receive", | |
| "domain", "methods", "chapter", "makes", | |
| "protection", "policies", "loan", "wide", | |
| "beauty", "manager", "india", "position", | |
| "taken", "sort", "listings", "models", | |
| "michael", "known", "half", "cases", | |
| "step", "engineering", "florida", "simple", | |
| "quick", "none", "wireless", "license", | |
| "paul", "friday", "lake", "whole", | |
| "annual", "published", "later", "basic", | |
| "shows", "corporate", "church", "method", | |
| "purchase", "customers", "active", "response", | |
| "practice", "hardware", "figure", "materials", | |
| "fire", "holiday", "chat", "enough", | |
| "designed", "along", "among", "death", | |
| "writing", "speed", "html", "countries", | |
| "loss", "face", "brand", "discount", | |
| "higher", "effects", "created", "remember", | |
| "standards", "oil", "bit", "yellow", | |
| "political", "increase", "advertise", "kingdom", | |
| "base", "near", "environmental", "thought", | |
| "stuff", "french", "storage", "japan", | |
| "doing", "loans", "shoes", "entry", | |
| "stay", "nature", "orders", "availability", | |
| "africa", "summary", "turn", "mean", | |
| "growth", "notes", "agency", "king", | |
| "monday", "european", "activity", "copy", | |
| "although", "drug", "pics", "western", | |
| "income", "force", "cash", "employment", | |
| "overall", "bay", "river", "commission", | |
| "package", "contents", "seen", "players", | |
| "engine", "port", "album", "regional", | |
| "stop", "supplies", "started", "administration", | |
| "bar", "institute", "views", "plans", | |
| "double", "dog", "build", "screen", | |
| "exchange", "types", "soon", "sponsored", | |
| "lines", "electronic", "continue", "across", | |
| "benefits", "needed", "season", "apply", | |
| "someone", "held", "anything", "printer", | |
| "condition", "effective", "believe", "organization", | |
| "effect", "asked", "eur", "mind"}; | |
| } // namespace lib | |
| } // namespace icing | |
| #endif // ICING_MONKEY_TEST_MONKEY_TEST_COMMON_WORDS_H_ |