diff --git a/libcorpus2/io/reader.h b/libcorpus2/io/reader.h index 80fbdb5674411dd65ec7f43a2f4b25525809fa29..d071f1d44f830a262e32a1532a898d8e4dc8591c 100644 --- a/libcorpus2/io/reader.h +++ b/libcorpus2/io/reader.h @@ -40,7 +40,7 @@ private: /** * Convenience class for readers that keep a buffer of chunks. Sentence - * and token accesors are based upon the chunk buffer. + * and token accessors are based upon the chunk buffer. * * A dervied class only neds to override ensure_more with a function that * fills the chunk buffer. @@ -68,12 +68,12 @@ protected: /** * Convenience class for readers that internally read sentences. The token - * accesor is based on the sentence buffer, so is the chunk accesor. + * accessor is based on the sentence buffer, so is the chunk accessor. * * A dervied class only neds to override actual_next_sentence with a * function that returns a new sentence. * - * Note that the chunk accesor might well read the entire input and return + * Note that the chunk accessor might well read the entire input and return * one huge chunk with all the sentences. */ class BufferedSentenceReader : public TokenReader diff --git a/libcorpus2/lexeme.h b/libcorpus2/lexeme.h index 0a508b1b0e4f61f5f08ef312ec26173304232f93..e15b0fefec3abe02d0e35e30897a3db8e5834b7c 100644 --- a/libcorpus2/lexeme.h +++ b/libcorpus2/lexeme.h @@ -37,7 +37,7 @@ public: /// Helper creation function static Lexeme create(const UnicodeString& lemma, const Tag& tag); - /// Lemma accesor + /// Lemma accessor const UnicodeString& lemma() const { return lemma_; } @@ -47,12 +47,12 @@ public: lemma_ = l; } - /// UTF-8 lemma convenience accesor + /// UTF-8 lemma convenience accessor const std::string lemma_utf8() const { return PwrNlp::to_utf8(lemma_); } - /// Tag accesor + /// Tag accessor const Tag& tag() const { return tag_; } diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h index 716188d10c7bcd3bb75363936335beea1f53bffe..41a23694bac05820a6366818f311179ceb39aa7b 100644 --- a/libcorpus2/tag.h +++ b/libcorpus2/tag.h @@ -59,7 +59,7 @@ public: int get_pos_index() const; - /// POS (part-of-speech) accesor + /// POS (part-of-speech) accessor mask_t get_pos() const { return pos_; } @@ -73,7 +73,7 @@ public: pos_ |= v; } - /// values accesor + /// values accessor mask_t get_values() const { return values_; } @@ -82,7 +82,7 @@ public: return values_ & mask; } - /// values accesor -- nonconst reference + /// values accessor -- nonconst reference void set_values(mask_t v) { values_ = v; } diff --git a/libcorpus2/tagset.h b/libcorpus2/tagset.h index 12b3e8abe5359c458cb6de078b13777b14c7b4f0..ca4ad09f809982211b69606fbecba587f443657e 100644 --- a/libcorpus2/tagset.h +++ b/libcorpus2/tagset.h @@ -437,12 +437,12 @@ public: */ double size_extra() const; - /// Tagset ID accesor + /// Tagset ID accessor tagset_idx_t id() const { return id_; } - /// Tagset name accesor + /// Tagset name accessor std::string name() const { return name_; } diff --git a/libpwrutils/pathsearch.h b/libpwrutils/pathsearch.h index fdf187abbe8456c4d986c080b06d79be762e8f2b..6a1696ac7ab9dcaa928861ceb4ef24edcee42cff 100644 --- a/libpwrutils/pathsearch.h +++ b/libpwrutils/pathsearch.h @@ -49,10 +49,10 @@ public: verbose_loading_ = v; } - /// Search path vector accesor + /// Search path vector accessor const std::vector<std::string>& get_search_path() const; - /// Search path string representation accesor + /// Search path string representation accessor std::string get_search_path_string() const; /// Seacrh path setter, vector of already-split paths @@ -62,7 +62,7 @@ public: /// separator char void set_search_path(const std::string &); - /// Separator accesor + /// Separator accessor const std::string& get_path_separator() const; /** diff --git a/libpwrutils/sentence.h b/libpwrutils/sentence.h index b2dbdcfe0690aefb32e443508710a83192b6f881..b502cfa7275279b74b5a417c2574dde2d2047717 100644 --- a/libpwrutils/sentence.h +++ b/libpwrutils/sentence.h @@ -45,27 +45,27 @@ namespace PwrNlp { return tokens_.empty(); } - /// Size accesor + /// Size accessor size_t size() const { return tokens_.size(); } - /// Token accesor + /// Token accessor TT* operator[](size_t idx) { return tokens_[idx]; } - /// Token accesor, const + /// Token accessor, const const TT* operator[](size_t idx) const { return tokens_[idx]; } - /// Underlying vector accesor, const + /// Underlying vector accessor, const const std::vector<TT*>& tokens() const { return tokens_; } - /// Underlying vector accesor + /// Underlying vector accessor std::vector<TT*>& tokens() { return tokens_; } @@ -75,7 +75,7 @@ namespace PwrNlp { tokens_.push_back(t); } - /// convenience first token accesor + /// convenience first token accessor const TT* first_token() const { assert(!tokens_.empty()); return tokens_[0];