Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Veronica Olsen 🏳️‍🌈🇳🇴🌻
@veronica@mastodon.online  ·  activity timestamp last week

So, why shouldn't a prompt accept "aye", "sure", "yeah", "yup", "ok", or "why not" as valid inputs? 😁

Writing some helper tooling for work ...

#Python #Code

A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
  • Copy link
  • Flag this post
  • Block
Veronica Olsen 🏳️‍🌈🇳🇴🌻
@veronica@mastodon.online replied  ·  activity timestamp last week

Of course, this list is just begging for review comments from my colleagues about missing options. I already have a request to include all languages at work, so needs Norwegian, German and Swedish as well. I mean, those are all "ja", but the informal ones differ. 😅

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login