Coding 2025-11-26
All right, I did the prompt for today, I think, so let's see about updating the lexicon representation.
(Also I submitted a 200 Word RPG. It's a very specific kind of generic, or possibly a generic kind of specific.)
Anyway, let's crack open the tomlkit documentation and see how I want to serialize stuff. I didn't have to think about this before, because the last project where I was doing something like this, I think I was only ever entering data manually, so I only needed code for deserialization.
First up, it kind of bothers me to put the different keys directly at the top level, so I'm going to need to come up with a dummy table to contain them all. So, we start with a TOMLDocument, which maps a constant key to a table, which maps pronunciations to aot, where each table therein has keys to string values, and an array of string values.
...
All right, a little monkeying around with the regeneration command, and now we've got a data format that won't constantly mess up the line endings. It is much longer, in terms of lines per entry, so maybe I want to look into making some kind of condensed version that can be generated from the TOML version.
But the key thing to think about next is, what does it look like to represent changes to an entry?
I'll see about that later, because now it's late.
Good night.