summary refs log tree commit diff stats
path: root/lib/token.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Migrate from mpark::variant to std::variantStar Rauchenberger2022-12-141-20/+20
|
* More hkutil refactoringKelly Rauchenberger2018-09-271-367/+128
| | | | | | | | All database access goes through hatkirby::database now. verbly::token, verbly::statement::condition, and verbly::part have been converted to use mpark::variant now. verbly::binding has been deleted, and replaced with a mpark::variant typedef in statement.h. This means that the only remaining tagged union class is verbly::generator::part. refs #5
* Replaced some split/implode uses with hkutilKelly Rauchenberger2018-08-101-6/+6
|
* Added quote tokenKelly Rauchenberger2017-11-081-5/+33
| | | | This token wraps the inner token in two provided delimiters.
* Renamed definiteArticle token to indefiniteArticleKelly Rauchenberger2017-11-081-11/+13
|
* Fixed bug with token title case transformKelly Rauchenberger2017-10-281-2/+30
| | | | | Word tokens and literal tokens that contained more than one word would only capitalize the first word; this has been fixed.
* Added more casing options to tokensKelly Rauchenberger2017-02-241-18/+64
|
* Added transform tokensKelly Rauchenberger2017-02-161-4/+208
|
* Made pronunciation::rhymes join dynamicKelly Rauchenberger2017-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This involved adding a new type of filter; one that compares (currently only equality and inequality) a field with another field located in an enclosing join context. In the process, it was discovered that simplifying the lemma::forms join field earlier actually made some queries return inaccurate results because the inflection of the form was being ignored and anything in the lemma would be used because of the inner join. Because the existing condition join did not allow for the condition field to be on the from side of the join, two things were done: a condition version of joinThrough was made, and lemma was finally eliminated as a top-level object, replaced instead with a condition join between word and form through lemmas_forms. Queries are also now grouped by the first select field (assumed to be the primary ID) of the top table, in order to eliminate duplicates created by inner joins, so that there is a uniform distribution between results for random queries. Created a database index on pronunciations(rhyme) which decreases query time for rhyming filters. The new database version is backwards-compatible because no data or structure changed.
* Added some missing includesKelly Rauchenberger2017-02-051-0/+1
|
* Rewrote tokensKelly Rauchenberger2017-01-231-504/+309
|
* Added debug print method for token typeKelly Rauchenberger2016-05-161-0/+15
|
* Fixed token extra functionality in copyingKelly Rauchenberger2016-05-161-0/+2
|
* Added verb framesKelly Rauchenberger2016-03-241-21/+596
| | | | | | | | | | In addition: - Added prepositions. - Rewrote a lot of the query interface. It now, for a lot of relationships, supports nested AND, OR, and NOT logic. - Rewrote the token class. It is now a union-like class instead of being polymorphic, which means smart pointers are no longer necessary. - Querying with regards to word derivation has been temporarily removed. - Sentinel values are now supported for all word types. - The VerbNet data retrieved from http://verbs.colorado.edu/~mpalmer/projects/verbnet/downloads.html was found to not be perfectly satisfactory in some regards, especially regarding adjective phrases. A patch file is now included in the repository describing the changes made to the VerbNet v3.2 download for the canonical verbly datafile.
* Renamed some class members that shared names with classesKelly Rauchenberger2016-03-171-2/+2
|
* Added word derivational relationships (kind of eh at the moment) and moved ↵Kelly Rauchenberger2016-03-161-0/+53
verbly into its own directory