sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

Add Yoda Text Command

Open aaravm4 opened this issue 5 years ago • 14 comments

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

aaravm4 avatar Oct 07 '20 18:10 aaravm4

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.

gustavwilliam avatar Oct 07 '20 18:10 gustavwilliam

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.

aaravm4 avatar Oct 07 '20 19:10 aaravm4

Alright. How would many sentences and more complex ones be handled? Like the one I just wrote (or this one).

gustavwilliam avatar Oct 07 '20 19:10 gustavwilliam

Let me test around with spaCy and yoda translations, and get back on a more concrete approach.

aaravm4 avatar Oct 07 '20 19:10 aaravm4

@aaravm4 How did it go? Any further thoughts on the implementation?

gustavwilliam avatar Nov 21 '20 21:11 gustavwilliam

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.

aaravm4 avatar Nov 21 '20 21:11 aaravm4

Alright, sounds good! Life happens; There's no hurry.

gustavwilliam avatar Nov 21 '20 21:11 gustavwilliam

@aaravm4 I'd like to see this feature in Sir-Lancebot. Are you still willing to implement this?

Xithrius avatar Mar 02 '21 07:03 Xithrius

Yea, I can still implement it.

aaravm4 avatar Mar 02 '21 12:03 aaravm4

Alright, cool.

Xithrius avatar Mar 02 '21 20:03 Xithrius

Almost done.

aaravm4 avatar Mar 08 '21 13:03 aaravm4

@aaravm4 How's it going?

Xithrius avatar Aug 23 '21 07:08 Xithrius