sir-lancebot
sir-lancebot copied to clipboard
Add Yoda Text Command
Description
I was thinking of adding a .yoda <text> command that transforms text into yoda-like speech.
Example:
.yoda You must have patience my young Padawan.
Returns:
Patience you must have my young Padawan. Hrmm
Reasoning
I recently saw the .snake snakify command, and thought it would be nice to implement a command that converts normal text to yoda-like text. It seems like a really fun implementation.
Proposed Implementation
Yoda's speech is always switched from the form of:
<subject> <action> to <action> <subject>
At the end of the text I could add a sound he makes like Hrmm.
Would you like to implement this yourself?
- [x] I'd like to implement this feature myself
- [ ] Anyone can implement this feature
How are you planning to switch the subject and action? Would that require some basic natural language processing?
Also, I don’t think Yoda only adds “hhmmm” at the end. I think randomly putting it in the sentence (between statements) or at the end or beginning would be the way to go.
I agree that yoda does add other sounds including hhmmm and yes, which I can sprinkle in throughout the text. In terms of switching the subject, verb, and action I could use a nlp parser such as spaCy to accomplish finding the subject. I'll look over some of his lines to get a better understanding of his talk as well.
Alright. How would many sentences and more complex ones be handled? Like the one I just wrote (or this one).
Let me test around with spaCy and yoda translations, and get back on a more concrete approach.
@aaravm4 How did it go? Any further thoughts on the implementation?
Hi. I have been pretty busy the past few months, but it's finally Thanksgiving break, so I can spend more time on an implementation.
Alright, sounds good! Life happens; There's no hurry.
@aaravm4 I'd like to see this feature in Sir-Lancebot. Are you still willing to implement this?
Yea, I can still implement it.
Alright, cool.
Almost done.
@aaravm4 How's it going?