bible-technology / scripture-burrito

Scripture Burrito Schema & Docs 🌯
http://docs.burrito.bible/
MIT License
21 stars 14 forks source link

Pick an enum naming convention and stick with it #104

Closed rdb closed 4 years ago

rdb commented 4 years ago

We seem to be inconsistent on this matter. Especially under the flavorDetails definitions, where enums are occasionally defined with upper-case, sometimes as English strings, and othertimes as camelCase. Also see #92. Should we adopt a consistent convention for this?

mvahowe commented 4 years ago

The future is camelCase!

mvahowe commented 4 years ago

I think the harder issue here is going to be working out how we ended up with the existing lists of enums (not the punctuation, the semantics). eg, for "audience", we have

basic, common, common-literary, literary, liturgical, children

I assume DBL inherited this from the PT Registry?

This looks like an attempt to produce a scale for what I would call "register", ie how long the words and sentences are, but it goes surreal at "liturgical". I don't know if we have projects that we could call "scripture" in our scheme that are liturgical - for me, liturgical implies not doing BCV. In any case, liturgy in the 21st Century is not always in literary language. It is possible in theory to have children's liturgy, and it's certainly possible to have more or less basic/common/literary content for children.

@jonathanrobie @klassenjm Who do you think we would need in the room to get the backstory for this and other choices of category in DBL (and, I suspect, PTReg) metadata?

mvahowe commented 4 years ago

As in other places, we have a choice between

jag3773 commented 4 years ago

@mvahowe I'm in favor of option 2, going with something new. Since these enums will now be inherited by multiple third parties, I think it will be important to clearly explain what they mean. If we fudge then we'll have a continual problem.

Perhaps a few sliding scales could stand in the gap and provide more explicit information. e.g. for audience, it may be better to have something like:

Just some ideas that would provide specific information that combined could equal the previous "liturgical" or "children" and yet provide richer information too.

klassenjm commented 4 years ago

@mvahowe I would strongly recommend speaking with Kees de Blois for some background on this vocabulary. It likely comes from before the PT Registry - from TMS, and other databases or practice before that.

rdb commented 4 years ago

I assume DBL inherited this from the PT Registry?

PT Registry inherited this from GBC, and GBC inherited from DBL (although GBC may have introduced some fields from other sources, I wouldn't know because I wasn't involved in GBC early on).

I don't mind going with something new as long as we have a clear and implementable data migration strategy.

klassenjm commented 4 years ago

DBL inherited various things from earlier systems, like TMS - which is why I would recommend checking in with Kees, if he does not mind engaging here a bit.

Jeff

On Mon., Jan. 13, 2020, 1:23 p.m. rdb, notifications@github.com wrote:

I assume DBL inherited this from the PT Registry?

PT Registry inherited this from GBC, and GBC inherited from DBL (although GBC may have introduced some fields from other sources, I wouldn't know because I wasn't involved in GBC early on).

I don't mind going with something new as long as we have a clear and implementable data migration strategy.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bible-technology/scripture-burrito/issues/104?email_source=notifications&email_token=ABBXGJ7NOSYFFBMI2EFHCW3Q5SWTHA5CNFSM4J5KNAD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZYHFY#issuecomment-573801367, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBXGJ4RFYHRS6I2UOPEAHTQ5SWTHANCNFSM4J5KNADQ .

--

This email and any attachments are confidential and intended only for those to which it is addressed. If you have received this message in error please inform the sender and delete the email. The content of this message belongs to the sender and the views expressed do not necessarily reflect the views of United Bible Societies.

United Bible Societies Association, a company limited by guarantee. Registered in England and Wales No 2264875. Registered Charity No 800058 Registered Office: Stonehill Green, Westlea, Swindon, Wiltshire, SN5 7PJ, England.

mvahowe commented 4 years ago

Thanks @rdb, @klassenjm. I'll start a conversation about this somewhere but, before doing that, I'll try to collect the current enums so we know what we are discussing. (So a meta-enum.)

mvahowe commented 4 years ago

Here are the enum-like bits of the current DBL metadata schema.

dbl_enums.txt

mvahowe commented 4 years ago

@rdb Could you please take a look at the document above and tell us

rdb commented 4 years ago

@mvahowe From that document, the Registry has scopeEnum, numeralSystem, translationTypeEnum, translationLevelEnum exactly with the options shown there, and all enum values are used by at least one project, with the following exceptions:

With regards to numerals, I would strongly prefer us to switch to the enumeration defined in the Unicode CLDR.

mvahowe commented 4 years ago

Some (maybe) low hanging fruit:

jag3773 commented 4 years ago

Notes from our meeting: use otdc; use audioFormat and drop flac; drop 'other' from fontEnum

mvahowe commented 4 years ago

New issue for audio-related enum issues at #144

mvahowe commented 4 years ago

New issue for translationType and audience at #145

I believe that all the enums are now either implemented or in another issue, so I'd like to close this issue.