talonhub / community

Voice command set for Talon, community-supported.
MIT License
637 stars 782 forks source link

Add generic create_spoken_forms function #413

Open pokey opened 3 years ago

pokey commented 3 years ago

Let's create one version of create_spoken_forms that can be used in many places. This would be a function that you can pass in a string, and it returns a list of possible ways to speak the given string. I think @rexroni's speakify is a great place to start. Here are a few things I can think of to support off the top of my head:

The places I can think of offhand to use this function are:

In terms of naming, I've seen the following names:

I think I'd vote for create_spoken_forms but they all seem fine to me

knausj85 commented 3 years ago

One small note from #399: it'd be nice to preserve Dragon's number parsing for those that might stick with it.

knausj85 commented 3 years ago

From testing around this, these are my thoughts:

some-file -> some file, some dash file

I've got an initial pass of this working with the filemanager etc in my personal branch that I can merge into the revelant PR eventually. Generally, this is working very well save for the few known issues.