What role does the hyphen serve in this context?
What role does the hyphen (it's not confused with an em dash) serve in these two contexts, and how to successfully replicate the conditions (to use it in any sentence I wish to).
You take your obligation to deliver an package very seriously - an ethic for which I am grateful.
But - you have a way of exceeding expectations, don't you?
I've searched a few sites, even this, but it's difficult when you have no firm grasp on the subject. If you realize where the quotes are from, please shh - embarrasing (also, is it correct to use a hyphen here, I have no idea).
Solution 1:
Update : Kate Bunting has a good point. In this context, dash may be a more appropriate term. Strictly speaking, Hyphen only refers to the (-) symbol in-between parts of a hyphenated word. For example, long-distance as in They are in a long-distance relationship is a hyphen.
In this context the dash is used as a long pause, providing separation between two related clauses. It's similar in function to a semicolon and you can maybe think of it as like a double-comma.
Did you get the bread, I'm hungry. (short pause)
Did you get the bread - I'm hungry. (medium pause)
Did you get the bread; I'm hungry. (also medium pause, but perhaps a bit more archaic)
Did you get the bread. I'm hungry. (longer pause)
It's not a particularly formal manner of writing, but it's certainly not incorrect. From a linguistic perspective, so long the average speaker can understand the meaning then it's valid, even if it doesn't meet the "formal" definitions of grammar. That's not to say that the rules of grammar don't have their place, but in literature authors have always bended the rules to create the kind of feeling they desire.
For the record, I'm not sure whether (-) is technically grammatically correct or not. Maybe somebody else can weigh in on this.
Solution 2:
A spaced hyphen in this context is shorthand for a spaced en dash, which is functionally exactly the same thing as an em dash (you just don't want to use both em dashes and spaced en dashes in the same book or what-have-you). They're both used for parenthetical statements. There are also spaced em dashes, which are also the same thing. Which you use depends on the convention; most people probably want to use unspaced em dashes, though, but some organizations (including at least in the United Kingdom) use spaced en dashes.
This is similar to how two hyphens together can represent an em dash. If you want it to look professional, use the actual em dashes or en dashes, though.
En dashes that are not spaced have other purposes (e.g. between a range of numbers or years; you might use a spaced en dash between full dates, however). This is why if you copy a date from some site, paste it in an editor and search for a hyphen you sometimes won't find any results within your pasted text.
There are also figure dashes (used in phone numbers and such) and quotation dashes.
You can find ways to type the real characters. On my Kindle Fire HD8, I just hold on the hyphen until a bunch of dashes pop up for me to select between. On Linux (Xubuntu and others), I enable the compose key, and then press the compose key (whichever key I chose), followed by two hyphens and a period for an en dash, or three hyphens for an em dash. In some word processors they might automatically replace your hyphens with dashes, and/or allow a keyboard shortcut to enter dashes.
If you're using formatted dashes in a publication, you'll probably also want to format your apostrophes, single quotes, double quotes, degrees (°) and elipses (those three dots are one character: …). I honestly don't know of anyone offhand who uses figure dashes, professionally or not (and fonts may not always support them), but technically you're supposed to.
If you want to avoid using dashes in your first specified context altogether, use parentheses (but some people don't like that, especially in a novel).
However, it should be noted that both em dashes and spaced en dashes are sometimes used for things other than parenthetical statements (like when someone does something abruptly, or interrupts, which IMO still has the spirit of a parenthetical statement, even though parentheses can't be used there).
Some people might use them to indicate a pause in dialog (I would encourage using a comma instead if you don't have a good reason to do otherwise; e.g. using the dash to indicate that the speaker may have chosen a different choice of words after the dash than originally intended before the dash).
If you'll do a search and replace on your text that involves the spaced en dash, you might consider using unspaced em dashes instead, since spaced en dashes may be used in date ranges and potentially other things, too, and because you may not have a space on both sides when it ends a sentence (so you would need to do more than one search and replace, or do a regular expression substitution).