From 7ea3569e3894f19fbae6cfdb3406f2240570e3c1 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 8 Dec 2022 15:03:51 -0500 Subject: Added a bunch of stuff for making LINGO puzzles --- generator/pronunciation.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'generator/pronunciation.cpp') diff --git a/generator/pronunciation.cpp b/generator/pronunciation.cpp index 3075d42..5c4d8e2 100644 --- a/generator/pronunciation.cpp +++ b/generator/pronunciation.cpp @@ -10,9 +10,10 @@ namespace verbly { int pronunciation::nextId_ = 0; - pronunciation::pronunciation(std::string phonemes) : + pronunciation::pronunciation(std::string phonemes, int anaphone_set_id) : id_(nextId_++), - phonemes_(phonemes) + phonemes_(phonemes), + anaphone_set_id_(anaphone_set_id) { auto phonemeList = hatkirby::split>(phonemes, " "); @@ -88,6 +89,8 @@ namespace verbly { fields.emplace_back("phonemes", arg.getPhonemes()); fields.emplace_back("syllables", arg.getSyllables()); fields.emplace_back("stress", arg.getStress()); + fields.emplace_back("anaphone_set_id", arg.getAnaphoneSetId()); + fields.emplace_back("reverse_pronunciation_id", arg.getReverseId()); if (arg.hasRhyme()) { -- cgit 1.4.1