#pragma once #include "word.h" #include #include #include #define MAXLEN 30 // using std::vector; using std::filesystem::path; class Dictionary { public: Dictionary(); void add_trigram_suggestions(std::vector &suggestions, const std::string &word) const; void rank_suggestions(std::vector &suggestions, const std::string &word) const; void trim_suggestions(std::vector &suggestions, const std::string &word) const; bool contains(const std::string &word) const; std::vector get_suggestions(const std::string &word) const; int slurp(path p); int spit(path p); private: std::vector words[MAXLEN]; };