0

Better with or without hyphen?

Dollar-quotes
Use dollar-quoted strings to simplify!
Use dollar-quoting to simplify!

Does it matter whether the second part is another noun?
And does it make a difference whether the compound word is used as adjective?

(The dollar character $ can be used to quote strings in the database system PostgreSQL. Hence the technical term. Examples here and here.)

  • Better with the hyphens, and no to your other questions. The compounds "dollar-quoted" and "dollar-quoting" are verb-centred compound adjectives. – BillJ Mar 27 '18 at 13:49
  • The answer and the linked site seem to disagree on your first part. And are you sure "dollar-quoting" serves as adjective in the example? – Erwin Brandstetter Mar 28 '18 at 17:15
2

It really depends on context.

  1. "Dollar quotes" or "dollar quoting" as a noun phrase: "Sometimes you need dollar quotes when using Postgresql."
  2. "Dollar-quoted" as a compound adjective: "Dollar-quoted strings simplify your life."

So, your first line depends on if there is even a sentence. The second line should be hyphenated, and the last line should not be hyphenated.

You may want to review this website: https://www.grammarbook.com/punctuation/hyphens.asp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.