AutoVoice AutoVoice Replacements - Word Boundary

Discussion in 'AutoApps' started by Javier, Aug 29, 2015.

  1. Javier

    Javier New Member

    Joined:
    Feb 22, 2015
    Messages:
    29
    Likes Received:
    4
    Hi,

    I was wondering if it was possible to add word boundaries to AutoVoice Replacements or allow replacements to accept Regex for word boundaries (\b).

    Currently there are a few undesirable corrections that are made in AutoVoice Replacements. Some examples include the following:

    and=an will turn "landscape" into "lanscape"
    light=lights will turn "lights" into "lightss"

    Currently I would have to place 3 corrections into auto voice to fix the problem because if I add space to the beginning or end of the word it will not make the correction if the word is at the beginning or end of the command. So to change light to lights I would need the following (notice spaces) " light=lights,light =lights, light =lights".

    Thanks for all your work,
    Javier
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,468
    Likes Received:
    795
    Hi.

    Ok, I've implemented this. Will be available on the next release :)
    You'll be able to enable regex for replacements.

    Hope this helps
    João
     
    Javier likes this.
  3. Javier

    Javier New Member

    Joined:
    Feb 22, 2015
    Messages:
    29
    Likes Received:
    4
    Just wondering if this was implemented in v 2.0.48? If it was can you please show me an example as I am not able to get it to work. I have tried "\blight\b=lights".

    Thanks again,
    Javier
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,468
    Likes Received:
    795
    I assume you want to replace "light" with "lights"? If so, just use "light=lights". :)
     
  5. Javier

    Javier New Member

    Joined:
    Feb 22, 2015
    Messages:
    29
    Likes Received:
    4
    Thanks, but this still has the undesirable behavior of changing "lights" to "lightss"....this is just an example from the first post.

    Best,
    Javier

    Sent from my Nexus 6 using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,468
    Likes Received:
    795
    Oh, sorry, forgot about the regex thing! :p Did you check the regex option?
     
  7. Javier

    Javier New Member

    Joined:
    Feb 22, 2015
    Messages:
    29
    Likes Received:
    4
    I have "Use Regex" checked but I do not see an option for Regex in replacements

    Sent from my Nexus 6 using Tapatalk
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,468
    Likes Received:
    795
    Hmm, sorry, you're right. I added them to the Recognize action, but not to the recognize condition! Need to add that, sorry!
     
  9. Javier

    Javier New Member

    Joined:
    Feb 22, 2015
    Messages:
    29
    Likes Received:
    4
    Thanks

    Sent from my Nexus 6 using Tapatalk
     
  10. NDT

    NDT New Member

    Joined:
    Mar 20, 2017
    Messages:
    4
    Likes Received:
    0
    Was this removed again? I can still not find a regex option in condition replacements :(
     

Share This Page