/// <summary>
        /// Saves the ternay index for the currently selected language.
        /// </summary>
        private void SaveTernaryIndex()
        {
            string indexPath = CommonFiles.TernaryIndex(LanguageId);
            var io = new IndexIO();

            io.SaveIndex(indexPath, TernaryIndex);
        }
        /// <summary>
        /// Loads the ternay index for the currently selected language.
        /// </summary>
        private void LoadTernaryIndex()
        {
            string indexPath = CommonFiles.TernaryIndex(LanguageId);
            var io = new IndexIO();

            TernaryIndex = io.LoadIndex(indexPath);
        }