diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-08 15:03:51 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-08 15:03:51 -0500 |
commit | 7ea3569e3894f19fbae6cfdb3406f2240570e3c1 (patch) | |
tree | e04caa4058baa9f0a9ff46771eef903be49ce3cb /generator/pronunciation.cpp | |
parent | 6816abc1e89fd955524d7c772477d6483d12cbf9 (diff) | |
download | verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.tar.gz verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.tar.bz2 verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.zip |
Added a bunch of stuff for making LINGO puzzles
Diffstat (limited to 'generator/pronunciation.cpp')
-rw-r--r-- | generator/pronunciation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 { | |||
10 | 10 | ||
11 | int pronunciation::nextId_ = 0; | 11 | int pronunciation::nextId_ = 0; |
12 | 12 | ||
13 | pronunciation::pronunciation(std::string phonemes) : | 13 | pronunciation::pronunciation(std::string phonemes, int anaphone_set_id) : |
14 | id_(nextId_++), | 14 | id_(nextId_++), |
15 | phonemes_(phonemes) | 15 | phonemes_(phonemes), |
16 | anaphone_set_id_(anaphone_set_id) | ||
16 | { | 17 | { |
17 | auto phonemeList = | 18 | auto phonemeList = |
18 | hatkirby::split<std::list<std::string>>(phonemes, " "); | 19 | hatkirby::split<std::list<std::string>>(phonemes, " "); |
@@ -88,6 +89,8 @@ namespace verbly { | |||
88 | fields.emplace_back("phonemes", arg.getPhonemes()); | 89 | fields.emplace_back("phonemes", arg.getPhonemes()); |
89 | fields.emplace_back("syllables", arg.getSyllables()); | 90 | fields.emplace_back("syllables", arg.getSyllables()); |
90 | fields.emplace_back("stress", arg.getStress()); | 91 | fields.emplace_back("stress", arg.getStress()); |
92 | fields.emplace_back("anaphone_set_id", arg.getAnaphoneSetId()); | ||
93 | fields.emplace_back("reverse_pronunciation_id", arg.getReverseId()); | ||
91 | 94 | ||
92 | if (arg.hasRhyme()) | 95 | if (arg.hasRhyme()) |
93 | { | 96 | { |