Repository navigation
Expand file tree
/
Copy pathsynonyms.js
More file actions
73 lines (72 loc) · 3.37 KB
/
Copy pathsynonyms.js
File metadata and controls
73 lines (72 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Concept groups: words that mean the same thing in icon names.
A query word expands to its group; synonym matches rank BELOW direct matches. */
const SYN_GROUPS = [
['person', 'human', 'user', 'people', 'man', 'woman', 'profile', 'avatar', 'account'],
['mail', 'email', 'envelope', 'inbox', 'mailbox', 'letter'],
['chat', 'message', 'comment', 'talk', 'conversation', 'bubble', 'discussion'],
['delete', 'trash', 'bin', 'garbage', 'remove'],
['settings', 'gear', 'cog', 'preferences', 'options'],
['search', 'magnify', 'find'],
['photo', 'image', 'picture', 'camera', 'gallery'],
['money', 'cash', 'dollar', 'currency', 'payment', 'coin', 'bank', 'finance', 'wallet'],
['car', 'vehicle', 'automobile'],
['plane', 'airplane', 'aircraft', 'flight', 'jet'],
['home', 'house'],
['building', 'office', 'company'],
['phone', 'telephone', 'call', 'mobile', 'smartphone'],
['computer', 'laptop', 'desktop', 'monitor', 'screen'],
['heart', 'love', 'like'],
['star', 'favorite', 'bookmark'],
['lock', 'security', 'secure', 'password', 'key', 'shield', 'protect'],
['time', 'clock', 'watch', 'hourglass', 'timer'],
['calendar', 'date', 'event', 'schedule'],
['music', 'audio', 'sound', 'song', 'speaker', 'volume'],
['video', 'movie', 'film', 'clip'],
['document', 'file', 'paper', 'page'],
['folder', 'directory'],
['edit', 'pencil', 'pen', 'write', 'compose'],
['chart', 'graph', 'analytics', 'statistics', 'diagram', 'report'],
['food', 'restaurant', 'eat', 'meal', 'dining'],
['coffee', 'drink', 'cup', 'tea'],
['shopping', 'cart', 'basket', 'store', 'shop', 'buy', 'bag'],
['health', 'medical', 'hospital', 'doctor', 'medicine', 'pill'],
['travel', 'luggage', 'suitcase', 'vacation', 'trip'],
['location', 'map', 'pin', 'place', 'marker', 'gps', 'navigation'],
['rocket', 'launch', 'startup'],
['lightning', 'bolt', 'flash', 'thunder'],
['idea', 'lightbulb', 'bulb', 'innovation'],
['warning', 'alert', 'danger', 'caution', 'error', 'exclamation'],
['info', 'information', 'help', 'question', 'support'],
['check', 'tick', 'done', 'success', 'confirm', 'verified'],
['close', 'cancel', 'cross'],
['add', 'plus', 'new', 'create'],
['link', 'chain', 'url', 'hyperlink'],
['globe', 'world', 'earth', 'global', 'internet', 'planet'],
['fire', 'flame', 'hot', 'burn'],
['gift', 'present', 'prize', 'reward'],
['book', 'read', 'library', 'education', 'learn', 'school', 'study', 'graduation'],
['work', 'job', 'briefcase', 'business'],
['bell', 'notification', 'alarm', 'ring'],
['print', 'printer'],
['wifi', 'wireless', 'signal', 'network', 'connection'],
['battery', 'power', 'charge'],
['sun', 'light', 'brightness', 'day'],
['moon', 'night', 'dark', 'sleep'],
['tree', 'nature', 'plant', 'leaf', 'eco', 'environment'],
['animal', 'pet', 'paw'],
['ai', 'robot', 'brain', 'artificial', 'intelligence'],
['run', 'exercise', 'fitness', 'gym', 'sport', 'workout'],
['smile', 'happy', 'face', 'emoji'],
['tool', 'wrench', 'hammer', 'build', 'repair', 'fix'],
['eye', 'view', 'visibility', 'see'],
['share', 'export', 'send'],
['refresh', 'reload', 'sync', 'update'],
['upload', 'download', 'transfer'],
];
const SYN_LOOKUP = {};
for (const group of SYN_GROUPS) {
for (const word of group) {
if (!SYN_LOOKUP[word]) SYN_LOOKUP[word] = new Set();
for (const other of group) if (other !== word) SYN_LOOKUP[word].add(other);
}
}