Cotton code
22 lines · 2.9 KB · JSONRaw
{"format_version":1,"id":"voice_word","list_route":"/voice-words","scope":"personal","setup":true,"name":"Word","plural":"Voice words","picture":null,"builtin":true,"engine":"dictation","screen_family":"settings","columns":[{"key":"term","name":"Word","type":"text","required":true},{"key":"line","name":"Heard","type":"text","readonly":true},{  "key": "source",  "name": "Added by",  "type": "choice",  "choices": [    "you"  ],  "readonly": true,  "labels": {    "you": "You"  }},{  "key": "use_count",  "name": "Times heard",  "type": "number",  "readonly": true,  "units": {    "one": "use",    "other": "uses",    "zero": "0 uses"  }},{"key":"last_used_at","name":"Last heard","type":"date","readonly":true},{"key":"added_by","name":"Added by","type":"link","link_to":"person","readonly":true,"fact":false}],"title":"term","date":null,"project":null,"order":null,"slip":{"title":"term","subtitle":"line","trailing":null,"photo":null,"toggle":null},"tile":{"face":"slip-list"},"page":[{"heading":null,"columns":["term","source","use_count","last_used_at"]}],"add":true,"group":{"column":"source","sections":[{"heading":null,"values":["you"]}]},"empty":{"title":"No words yet","message":"Add a name dictation keeps mishearing \u2014 a person, a place, a business \u2014 and it listens for it everywhere you speak."},"delete":false,"instructions":"Voice words, on the person's own page (Me), holds only the person's manual additions (at most three words); they are the person's, heard by every microphone in every database. Names from records feed dictation automatically on this device. read.voiceContext chooses at most 100 hints from the screen's record and its linked people, project and group, then visible titles and group names, always keeping manual additions, then names in the open database and global fill; use count and recency order each band. Swift passes the screen and never builds the list. settings.recordVoiceUse records one use per hinted term heard in the final transcript, once per stop in one batch; generated words have source auto. The hints and final transcript stay on the device. A manual addition wins over an automatic spelling and stays after a source record goes. Adding a word is the list's action and removing one is the page's; removing a manual addition cannot be undone. Me's Language selects one language, English by default. read.voiceContext answers its language code from the personal Me row in every database; dictation combines that language with the device region and never mixes languages.","tables":[],"commands":[{"id":"remove","label":"Delete","kind":"update","method":"settings.forgetVoiceTerm","bindings":{"id":"$id"},"receipt":"Deleted","does":"destroys","object":"bin","destructive":true,"confirm":"Delete this manually added word permanently."}],"readonly_when":"source","parts":{"shape":"sheet","head":{"facts":[]},"links":[],"lists":[],"acts":{"more":[],"away":"remove"},"cards":[{"column":"added_by"}],"strip":[]}}