Skip to content

Instantly share code, notes, and snippets.

@Schwad
Last active November 25, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schwad/6a39abf38b2c35280f5ad8783403b13d to your computer and use it in GitHub Desktop.
Save Schwad/6a39abf38b2c35280f5ad8783403b13d to your computer and use it in GitHub Desktop.
@apotonick Tesla Truck implementation
module Tesla
module Truck
module Destroyer
def self.call(human_name:)
puts "Das #{human_name} wurde zerstört."
end
end
end
end
Tesla::Truck::Destroyer.call(human_name: 'nick')
#=> Das nick wurde zerstört.
@apotonick
Copy link

Incorrect German, it's "Der Nick", since I'm male. It's a very important distinction in German grammar that affects the article.

@Schwad
Copy link
Author

Schwad commented Nov 25, 2019

@apotonick - see latest revision: https://gist.github.com/Schwad/6a39abf38b2c35280f5ad8783403b13d/revisions

Since a male, female, or other name may be passed to the Destroyer module should we use the neuter form Das? Or is there a 3rd party RubyGem we can pass this through to determine grammar/gender?

@apotonick
Copy link

Great work! 💪 a 3rd party gem that receives the pronoun should compute the article - this would avert any drama/criticism on incorrect assumption of the person targeted by your code!

@apotonick
Copy link

call(human_name:, pronoun: Pronouner.new(:they)) ?

@Schwad
Copy link
Author

Schwad commented Nov 25, 2019 via email

@apotonick
Copy link

😹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment