5#ifndef MOLYBDEN_DICTIONARY_HPP
6#define MOLYBDEN_DICTIONARY_HPP
22 virtual std::vector<std::string>
words() = 0;
27 virtual bool addWord(
const std::string& word) = 0;
37 virtual bool hasWord(
const std::string& word) = 0;
Provides functionality for working with a spell check dictionary.
Definition dictionary.hpp:16
virtual bool removeWord(const std::string &word)=0
Removes the given word from the dictionary and schedules a write to disk.
virtual bool addWord(const std::string &word)=0
Adds the given word to the dictionary and schedules a write to disk.
virtual std::vector< std::string > words()=0
The words in the current dictionary or an empty list if the dictionary does not have any word.
virtual bool hasWord(const std::string &word)=0
Indicates if the dictionary contains the given word.