BlueGit

ict rusty-teams

Files

rusty-teams / crates / app-call-model / src / report / common_words.rs

common_words.rs

common_words.rs 3.2 KiB Download Raw
1const COMMON_WORDS: &[&str] = &[
2 "a", "about", "account", "active", "admin", "after", "agent", "alert", "all", "also", "and", "answer", "any", "app",
3 "are", "art", "at", "audio", "auto", "away", "back", "bad", "band", "bank", "bass", "be", "bell", "best", "big",
4 "bird", "black", "block", "blue", "board", "bot", "box", "brown", "bug", "build", "busy", "but", "by", "call",
5 "camera", "can", "case", "cast", "center", "change", "channel", "chat", "check", "city", "class", "clear", "client",
6 "close", "code", "cold", "come", "conference", "connect", "connected", "contact", "cook", "core", "cost", "count",
7 "cross", "data", "date", "day", "de", "del", "demo", "den", "der", "des", "desk", "device", "die", "das",
8 "do", "door", "down", "drop", "du", "early", "east", "echo", "end", "error", "event", "fall", "fast", "field",
9 "file", "fine", "first", "fish", "for", "fox", "frame", "free", "from", "front", "full", "game", "gate",
10 "general", "get", "go", "gold", "good", "gray", "green", "grey", "group", "guest", "hall", "hand", "hard", "has",
11 "have", "head", "heat", "help", "here", "high", "hill", "hold", "home", "host", "hot", "house", "hub", "ice", "id",
12 "in", "info", "input", "is", "it", "join", "joined", "just", "key", "king", "lab", "lake", "land", "lane", "last",
13 "le", "lead", "left", "level", "light", "line", "link", "little", "live", "lobby", "local", "lock", "log", "long",
14 "loss", "low", "main", "major", "man", "mark", "master", "may", "media", "meet", "meeting", "member", "mic",
15 "mill", "mobile", "mode", "more", "moss", "mute", "muted", "my", "name", "net", "network", "new", "news",
16 "next", "night", "no", "none", "north", "not", "note", "now", "null", "of", "off", "office", "ok", "old", "on",
17 "one", "online", "only", "open", "or", "out", "output", "owner", "page", "park", "path", "peer", "phone", "pine",
18 "play", "pool", "port", "post", "power", "price", "pro", "queue", "quick", "rain", "ready", "red", "relay", "remote",
19 "reply", "report", "rich", "ring", "river", "road", "rock", "room", "rose", "rule", "run", "sales", "same", "screen",
20 "see", "self", "send", "server", "service", "session", "set", "share", "shared", "short", "side", "sign", "silver",
21 "small", "smart", "snow", "so", "sound", "south", "speaker", "speed", "spring", "staff", "stage", "star",
22 "start", "state", "status", "stone", "stop", "storm", "stream", "street", "strong", "summer", "support",
23 "system", "team", "teams", "tech", "test", "tester", "the", "time", "to", "top", "track", "true", "turn", "up",
24 "user", "van", "video", "view", "voice", "von", "wait", "wall", "ward", "water", "way", "web", "well", "west",
25 "white", "will", "win", "winter", "with", "wood", "word", "work", "world", "young", "your", "zu", "zum", "zur",
26 "max", "min", "rob", "ray", "pat", "eve", "jan", "feb", "mar", "apr", "jun", "jul", "aug", "sep",
27 "oct", "nov", "dec",
28 "mon", "tue", "wed", "thu", "fri", "sat", "sun", "am", "an", "auf", "aus", "bei", "ein", "eine", "im", "ist", "mit", "nach", "neu", "und", "vom",
29];
30
31pub fn is_common_word(word: &str) -> bool {
32 let lowered = word.to_lowercase();
33 COMMON_WORDS.contains(&lowered.as_str())
34}