Add function to singularize or pluralize a word.

This commit is contained in:
Nolan Darilek 2019-09-24 18:06:57 -05:00
parent c6da1a0c27
commit bc46bbad60

6
TTS.gd
View File

@ -9,3 +9,9 @@ func speak(text, interrupt := true):
func stop(): func stop():
tts.stop() tts.stop()
func singular_or_plural(count, singular, plural):
if count == 1:
return singular
else:
return plural