didoesdigital/typey-type

Steno hints to look up briefs on the fly instead of using static files

didoesdigital opened this issue ยท 18 comments

Overview

By looking up briefs on the fly for steno hints in lessons instead of using the hints supplied by static lesson files, the static lesson generator project (which is not open source) will become redundant. The static lesson generator is error prone, manual, laborious and has no flexibility for people using their own dictionaries. Instead of lesson files containing a word and brief as well as accompanying dictionaries, lessons might only need to be word lists. Metadata in the lesson index could link to any recommended dictionaries.

Looking up briefs on the fly will also let people use their own dictionaries (#5) to see the hints they prefer in lessons.

UPDATE: static lesson generator has been replaced by the open source Typey Type CLI: https://github.com/didoesdigital/typey-type-cli

We currently use the static lesson files for:

A) word lists,
B) hints for lessons where the URL does not contain phrasing, prefixes, suffixes, steno party tricks, or collections/tech, and
C) the main steno hint (whereas the list of steno hints is already looked up on the fly when using the "Show other stroke hints" settings)

To look up steno hints on the fly for B), we could use lesson metadata to use hints from recommended dictionaries.

Consideration: "I" might be better stroked with EU in a story, 1-R in a roman numerals lesson, or *EUP in a fingerspelling lesson.

Some words that may start showing different briefs:

  • "first" may start to show TPEURS instead of TPEUFRT โœ…
  • "get" may start to show TKPW-T instead of TKPWET (skeleton brief instead of canon)
  • "fall" may start to show TPAL instead of TPAUL (alternative instead of canon)
  • "situation" may start to show SEUFP instead of SWAEUGS (shorter brief)
  • "maiden" may start to show PHAEUD/EPB instead of PHAEUD/*EPB ๐Ÿ™…โ€โ™€๏ธ
  • "shouldn't" may start to show SH-PBT instead of SHOPBT (skeleton brief instead of canon)
  • "we've" may start to show W*EF instead of WAOEF ๐Ÿคทโ€โ™€๏ธ
  • "mustn't" may start to show PHUPBT instead of PHUFPBT (seems like a brief instead of phonetic)
  • "architecture" may start to show TREGS instead of TREBGS ๐Ÿคทโ€โ™€๏ธ
  • "weren't" may start to show W-RPBT instead of WR-PBT ๐Ÿคทโ€โ™€๏ธ
  • "V" may start to show 5R instead of SR*P ๐Ÿ™…โ€โ™€๏ธ
  • "X" may start to show 10R instead of KP*P ๐Ÿ™…โ€โ™€๏ธ

Recent changes show hints on the fly when globalUserSettings in local storage has experiments key with an object for the value that includes stenohintsonthefly:true e.g.:

{"experiments":{"stenohintsonthefly":true},"flashcardsCourseLevel":"proficientCourse","showMisstrokesInLookup":false,"writerInput":"raw"}

TODO: add support for special lessons and remove exceptions here: https://github.com/didoesdigital/typey-type/blob/master/src/App.js#L1407-L1414

Consideration: unix AO*UPB/T-PLZ

Consideration: hints for multiple suffixes e.g. "buffetings" should show "PWUF/ET/-G/-S" using just the base word "PWUF/ET": "buffet", and the multiple suffixes, "-G": "{^ing}", and "-S": "{^s}",

Consideration: entries ending in "s" should continue to prioritise -S over -Z e.g. "wanderings"

"Good-by." shows fingerspelling hint.

To test:

King's
"Y--es,"
Madam's
"O
Cinderilla's
oh,
do,
twenty-five
i.e.
i.e.,
well-known
self-control
Boy's
"It's
That's
Rabbit's
l'etat c'est moi

"bulls" shows PWUL/-S but "Bulls" shows fingerspelling

Similar: test with "Mouses"

"delight;" hint shows suppressed space semi-colon instead of spaced semi-colon