Included emojiSynonyms.json to extend searchable keywords (it was imported but never used or implemented)
205 new keywords have been added to emojiSynonyms.json
EmojiSearchSpace object is what is used to search for emoji. This object is kept in EmojiSearch.js to separate it from EmojiInput.js
The more popularly used search engine Fuse.js replaced Wade. Changed emojiSynonym.json and compiled.js JSON format to reduce redundancy/space and allow Fuse.js to search through them.
Fuzzy search can be enabled by increasing the threshold in the fuseOptions object. Currently, fuzzy search is disabled by default (set to 0.0), so it behaves as usual.
When users are making a search query, the first few characters they input may result in many many matches. (The additions to the synonyms dictionary has contributed to more search results.) So, I feel like it is nice to only the top 50 most relevant results so that the user's hardware does not have to render too many emoji and would be able to quickly display queries.
(Side note) My code editor automatically prettifies javascript files, so the git diffs may look like I changed a lot but I really haven't. Indentations changed to spaces
Included emojiSynonyms.json to extend searchable keywords (it was imported but never used or implemented)
205 new keywords have been added to emojiSynonyms.json
EmojiSearchSpace object is what is used to search for emoji. This object is kept in EmojiSearch.js to separate it from EmojiInput.js
The more popularly used search engine Fuse.js replaced Wade. Changed emojiSynonym.json and compiled.js JSON format to reduce redundancy/space and allow Fuse.js to search through them.
Fuzzy search can be enabled by increasing the
threshold
in thefuseOptions
object. Currently, fuzzy search is disabled by default (set to0.0
), so it behaves as usual.When users are making a search query, the first few characters they input may result in many many matches. (The additions to the synonyms dictionary has contributed to more search results.) So, I feel like it is nice to only the top 50 most relevant results so that the user's hardware does not have to render too many emoji and would be able to quickly display queries.
(Side note) My code editor automatically prettifies javascript files, so the git diffs may look like I changed a lot but I really haven't.Indentations changed to spaces