plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

Don't remove non-space characters even if 'removeSpaceBefore' property is true #409

Closed NeoCat closed 11 years ago

NeoCat commented 11 years ago

In non-space delimited languages (such as Japanese), Guzzoni may return SpeechRecognized object with removeSpaceBefore property = true even when the previous phrase does not end with space character. This patch checks the previous phrase really ends with space before removing the last character.

plamoni commented 11 years ago

Sounds useful. I'm not really a JP expert, but it certainly doesn't hurt to check for the space, and if it helps some folks, that's even better. Thanks!