decasify(1)

πŸ“¦
version 0.11.4 Β· 2 versions
, in arch rolling, nixpkgs unstable

Okay so bestie, welcome to decasify(1) β€” straight from the General Commands Manual β€” and it’s literally here to convert prose strings to other cases following locale specific rule sets. πŸ’–βœ¨


πŸŽ€ NAME πŸŽ€

decasify β€” convert prose strings to other cases following locale specific rule sets. No cap, that’s the whole vibe. πŸ’…

🌸 SYNOPSIS 🌸

decasify [-l|--locale] [-c|--case] [-s|--style] [-O|--overrides] [-h|--help] [INPUT]

πŸ¦‹ DESCRIPTION πŸ¦‹

It converts prose strings to other cases following locale specific rule sets. And yes, it can convert input in any supported language from any case to any other case. Obsessed. 🌈

πŸ’… OPTIONS πŸ’…

  • -l, --locale <LOCALE> β€” the locale of the input text. (default: en)

This is how decasify knows what language-specific handling needs to be done. It can affect how individual Unicode characters get converted to other cases, and it can change which style guides are even considered. πŸ‘‘

  • Possible values:
    • en
    • tr
    • es
  • -c, --case <CASE> β€” the desired output case. (default: title)

This is what case you’re converting to. Heads up though: the output can be affected by the input case, so in some cases (pun intended πŸ˜‰) you may need to either process twice or avoid doing so depending on the expected result. For example, title-casing in some English styles tries to preserve capitalized acronyms, but lower-casing does not. First converting to lower-case then to title-case would give a different result than directly to title-case. So yeah, order matters, bestie.

  • Possible values:
    • lower
    • sentence
    • title
    • upper
  • -s, --style <STYLE> β€” proffered style guide. (default: default)

For languages with more than one style guide, this picks which set of guidelines to follow. Each language will have a default (typically the one we have the most robust implementation for or implemented first). Slay. ✨

  • Possible values:
    • ap
    • cmos
    • gruber
    • default
    • naive
    • tdk
    • rae
    • fundeu
  • -O, --overrides <OVERRIDES>... β€” override words.

This lets you override the output case of specific words regardless of what the casing function or style guide would normally do with them. The case used to specify these words is used in the output regardless of the target style or input case. So if you type it in all caps, it stays all caps, periodt. πŸ”₯

  • -h, --help β€” print help (see a summary with -h). πŸ’–
  • [INPUT] β€” the input string or strings (note STDIN also accepted).

Note that all input arguments are processed together joined with a space, and STDIN streams are processed line by line. This can affect the output β€” for example, if using sentence case the input should be on a single line, not broken across several. So keep it one line if you want sentence case to behave, bestie. 😭

πŸ‘‘ AUTHORS πŸ‘‘

Caleb Maclennan <caleb@alerque.com> β€” the icon behind this. 🫢


k bye bestie, this iconic page was brought to you by the source/version decasify and the manual decasify(1) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from