public static bool CompareCustomWords(LexiconCustomWord word1, LexiconCustomWord word2)
        {
            if (!word1.Word.Equals(word2.Word))
            {
                return(false);
            }

            if (!word1.DisplayAs.Equals(word2.DisplayAs))
            {
                return(false);
            }

            if (!word1.Pronunciations.Equals(word2.Pronunciations))
            {
                return(false);
            }

            return(true);
        }
        void HandleSuccessCallback(WordsList response, System.Collections.Generic.Dictionary <string, object> customData)
        {
            if (response != null)
            {
                workspace.CustomWords.Clear();
                foreach (WordData wordData in response.words)
                {
                    LexiconCustomWord customWord = new LexiconCustomWord();
                    customWord.Word           = wordData.word;
                    customWord.DisplayAs      = wordData.display_as;
                    customWord.Pronunciations = string.Join(", ", wordData.sounds_like);

                    workspace.CustomWords.Add(customWord);
                }

                EditorUtility.SetDirty(workspace);
                AssetDatabase.SaveAssets();
            }

            succeeded = true;
            isDone    = true;
        }