dwiel / talon_community

a single source of application-specific scripts
BSD Zero Clause License
121 stars 113 forks source link

add vocab file? #52

Open dylan-chong opened 5 years ago

dylan-chong commented 5 years ago

What you think about adding some sort of vocab file? There are things like this in std.py,

    "word queue": "queue",
    "word eye": "eye",
    "word bson": "bson",
    "word iter": "iter",
    "word cmd": "cmd",
    "word dup": "dup",
    "word (dickt | dictionary)": "dict",
    "word shell": "shell",
    "word talon": "talon",

It also looks like there are random words defined in utils.py

In my personal set up, I sort of have a similar thing (https://github.com/dylan-chong/examples/blob/master/programming.py#L35), although my preferred way is to just add the word to the Dragon vocabulary so you can train the word with Dragon to improve its accuracy. This doesn't work when there are Dragon commands/words that are very similar, such as trying to get Dragon to recognise Python instead of -.

Sentence the examples repository also has a way of dealing with vocabulary https://github.com/talonvoice/examples/blob/master/vocab.py

dwiel commented 5 years ago

I was imagining something more like vocab.py in the examples. I have something similar set up for myself, but it would be nice to have a standard and standard methods for modifying it by voice.

Talon also allows defining vocabulary available only in certain contexts. That could also be considered here, but probably not right away.