Thesemicolon; (orsemi-colon[1]) is a symbol commonly used asorthographicpunctuation. In theEnglish language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought, such as when restating the preceding idea with a different expression. When a semicolon joins two or more ideas in one sentence, those ideas are then given equal rank.[2] Semicolons can also be used in place of commas to separate items in a list, particularly when the elements of the list themselves have embeddedcommas.[3]
In 1561, Manuzio's grandson, also calledAldo Manuzio, explains the semicolon's use with several examples inOrthographiae ratio. In particular, Manuzio motivates the need for punctuation (interpungō) to divide (distinguō) sentences and thereby make them understandable. Thecomma, semicolon,colon, andperiod are seen as steps, ascending from low to high; the semicolon thereby being an intermediate value between the comma, and colon:. Here are four examples used in the book to illustrate this:[11][10]: 49
Ratio docet, si adversa fortuna sit, nimium dolendum non esse; si secunda, moderate laetandum.[c] Reason teaches, if fortune is adverse, not to complain too much; if favorable, to rejoice in moderation.
Tu, quid divitiae valeant, libenter spectas; quid virtus, non item.[d] You, what riches are worth, gladly consider; what virtue (is worth), not so much.
Etsi ea perturbatio est omnium rerum, ut suae quemque fortunae maxime paeniteat; nemoque sit, quin ubivis, quam ibi, ubi est, esse malit: tamen mihi dubium non est, quin hoc tempore bono viro, Romae esse, miserrimum sit.[e] Although it is a universal confusion of affairs(,) such that everyone regrets their own fate above all others; and there is no one, who would not rather anywhere else in the world, than there, where he is, prefer to be: yet I have no doubt, at the present time for an honest man, to be in Rome, is the worst form of misery.
Around 1580,Henry Denham starts using the semicolon "with propriety" for English texts, and more widespread usage picks up in the next decades.[10]: 52 [12]
Around 1640,[f] inBen Jonson's bookThe English Grammar, the character; is described as "somewhat a longer breath" compared to thecomma. The aim of the breathing, according to Jonson, is to aid understanding.[14][g]
In 1644, in Richard Hodges'The English Primrose, it is written:[16]
At a comma, stop a little;[...]At a semi-colon, somewhat more;[...]At a colon, a little more than the former;[...]At a period, make a full stop;
ThePeriod is a pause in quantity or duration double of theColon; the Colon is double of the Semicolon; and the Semicolon is double of theComma. So that they are in the same proportion to one another as theSembrief, theMinim, theCrotchet, and theQuaver, in Music.
In 1798, inLindley Murray'sEnglish Grammar, the semicolon is introduced as follows:[18]
The Semicolon is used for dividing acompound sentence into two or more parts, not so closely connected as those which are separated by a comma, nor yet so little dependent on each other, as those which are distinguished by a colon.
The semicolon is sometimes used, when the preceding member of the sentence does not of itself give a complete sense, but depends on the followingclause; and sometimes when the sense of that member would be complete without the concluding one; as in the following instances.
Although terminal marks (i.e.full stops,exclamation marks, andquestion marks) indicate the end of a sentence, thecomma, semicolon, andcolon are normally inside sentences, making them secondary boundary marks. In modernEnglish orthography, the semicolon falls between terminal marks and the comma; its strength is equal to that of the colon.[19]
The most common use of the semicolon is to join two independent clauses without using a conjunction such as the wordand.[20] Semicolons are followed by alower case letter, unless that letter would ordinarily be capitalised mid-sentence (e.g., the word "I", acronyms/initialisms, orproper nouns). In older English printed texts, colons and semicolons are offset from the preceding word by a non-breaking space, a convention still current in modern continental French texts. Ideally, the space is less wide than the inter-word spaces. Some guides recommend separation by ahair space.[21] Modernstyle guides recommend no space before them and one space after. They also typically recommend placing semicolons outside endingquotation marks, although this was not always the case. For example, the first edition ofThe Chicago Manual of Style (1906) recommended placing the semicolon inside ending quotation marks.[22]
Uses of the semicolon in English include:
Between items in a series or listing when the items contain internalpunctuation, especially parenthetic commas, where the semicolons function as theserial commas for the series or listing. The semicolon divides the items on the list from each other, to avoid having a jumble of commas with differing functions which could cause confusion for the reader. This is sometimes called the "super comma" function of the semicolon:
The people present were Jamie, a man from New Zealand; John, the milkman's son; and George, a gaunt kind of man with no friends.
Several fast food restaurants can be found within the following cities: London, England; Paris, France; Dublin, Ireland; and Madrid, Spain.
Here are three examples of familiar sequences: one, two, and three; a, b, and c; first, second, and third.
(Fig. 8; see also plates in Harley 1941, 1950; Schwab 1947).
My wife said she would like tea; coffee would have been my choice.
I went to the basketball court; it was closed for cleaning.
I told Kate she's running for the hills; she knew I was joking.
In rare instances, when a comma replaces a period (full stop) in a quotation, or when a quotation otherwise links two independent sentences:
"I have no use for this," he said; "you are welcome to it."
"Is this your book?" she asked; "I found it on the floor."
In a list or sequence, if even one item needs its own internal comma, use of the semicolon as the separator throughout that list is justified, as shown by this example from theCalifornia Penal Code:
A crime or public offense is an act committed or omitted in violation of a law forbidding or commanding it, and to which is annexed, upon conviction, either of the following punishments:
Death;
Imprisonment;
Fine;
Removal from office; or,
Disqualification to hold and enjoy any office of honor, trust, or profit in this State.[24]
InArabic, the semicolon is calledfasila manqūta (Arabic:فاصلة منقوطة) which means literally "a dotted comma", and is written inverted؛. In Arabic, the semicolon has several uses:
It can be used between two clauses, in which the first clause causes the second.
Example: "He played a lot; so, his clothes became dirty". (Arabic:لَعِبَ كَثِيرًا؛ فَٱتَّسَخَتْ مَلَابِسُهُ.)
It can be used between two clauses, where the second isa reason for the first.
Example: "Your sister did not get high marks; she didn't study". (Arabic:لم تحقق أختك درجات عالية؛ لأنها لم تدرس .)
InGreek andChurch Slavonic, theGreek question mark (;) looks exactly like a Latin semicolon.[25][26] To indicate a long pause or to separate sections that already contain commas (the semicolon's purposes in English), Greek uses, but extremely rarely, the 'upper dot' (Greek:άνω τελεία,romanized: áno teleía),·, which looks very similar to the Latininterpunct.[27]
For example:
Church Slavonic sentence ending with a question mark:гдѣ єсть рождeйсѧ царь їудeйскій;code: chu promoted to code: cu (Where is the one who is born king of the Jews? –Matthew 2:1)
Greek sentence ending with a question mark:Τι είναι μια διασύνδεση; (What is a connection?)
In French, a semicolon (point-virgule, literally "dot-comma") is a separation between two full sentences, used where neither a colon nor a comma would be appropriate. The phrase following a semicolon has to be an independent clause, related to the previous one but not explaining it. (When the second clause explains the first one, French consistently uses acolon.)
Thedash character is used in French writing too, but not as widely as the semicolon. Usage of these devices (semicolon and dash) varies from author to author.
Some authors have avoided and rejected the use of the semicolon throughout their works.Lynne Truss stated:
Samuel Beckett spliced his way merrily through such novels asMolloy andMalone Dies, thumbing his nose at the semicolon all the way.James Joyce preferred the colon, as he thought it was more authentically classical.P. G. Wodehouse did an effortlessly marvelous job without it,George Orwell tried to avoid the semicolon completely inComing Up for Air (1939),Martin Amis included just one semicolon inMoney (1984), andUmberto Eco was congratulated by an academic reader for using zero semicolons inThe Name of the Rose (1983).[29]
Americans have long regarded the semi-colon with suspicion, as a genteel, self-conscious, neither-one-thing-nor-the other sort of punctuation mark, with neither the butchness of a full colon nor the flighty promiscuity of the comma.Hemingway,Chandler, andStephen King wouldn't be seen dead in a ditch with a semi-colon (thoughTruman Capote might). Real men, goes the unwritten rule of American punctuation, don't use semi-colons.[30]
Semicolon use in British fiction has declined by 25% from 1991 to 2021.[31]
Incomputer programming, the semicolon is often used to separate multiplestatements (for example, inPerl,[33]Pascal,[34] andSQL;[35] seePascal: Semicolons as statement separators). In other languages, semicolons are calledterminators[5] and are required after every statement (such as inPL/I,[36]Java,[37] and theC[38] family). Today semicolons as terminators has largely won out, but this was a divisive issue in programming languages from the 1960s into the 1980s.[39] An influential and frequently cited study in this debate wasGannon & Horning (1975), which concluded strongly in favor of semicolon as a terminator: "The most important [result] was that having a semicolon as a statement terminator was better than having a semicolon as a statement separator."[40] The study has been criticized as flawed by proponents of semicolon as a separator,[41] due to participants being familiar with a semicolon-as-terminator language and unrealistically strict grammar. Nevertheless, the debate ended in favor of semicolon as terminator. Therefore, semicolon provides structure to the programming language.
Semicolons are optional in a number of languages, includingBCPL,[42]Python,[43]R,[44]Eiffel,[45] andGo,[46] meaning that they are part of theformal grammar for the language but can be inferred in many or all contexts (e.g., by end of line that ends a statement, as in Go and R). As languages can be designed without them, semicolons are considered an unnecessary nuisance by some.[41]
The use of semicolons in control-flow structures and blocks of code is varied – semicolons are generally omitted after a closing brace, but included for a single statement branch of a control structure (the "then" clause), except in Pascal, where a semicolon terminates the entire if-then-else clause (to avoiddangling else) and thus is not allowed between a "then" and the corresponding "else", as this causes unnesting.
This use originates withALGOL 60[47] and falls between the comma, – used as a list separator – and the period/full stop. – used to mark the end of the program. The semicolon, as a mark separating statements, corresponds to the ordinary English usage of separating independent clauses and gives the entire program the gross syntax of a single ordinary sentence. Of these other characters, whereas commas have continued to be widely used in programming for lists (and rare other uses, such as thecomma operator that separates expressions in C), they are rarely used otherwise, and the period as the end of the program has fallen out of use. The last major use of the comma, semicolon, and period hierarchy is inErlang (1986), where commas separate expressions; semicolons separate clauses, both for control flow and for function clauses; and periods terminate statements, such as function definitions or module attributes, not the entire program. Drawbacks of having multiple different separators or terminators (compared to a single terminator and single grouping, as in semicolon-and-braces) include mental overhead in selecting punctuation, and overhead in rearranging code, as this requires not only moving lines around, but also updating the punctuation.[48]
In some cases the distinction between a separator and a terminator is strong, such as early versions of Pascal, where a final semicolon yields asyntax error. In other cases a final semicolon is treated either as optional syntax or as being followed by a null statement, which is either ignored or treated as aNOP (no operation or null command); comparetrailing commas in lists. In some cases a blank statement is allowed, allowing a sequence of semicolons or the use of a semicolon by itself as the body of a control-flow structure. For example, a blank statement (a semicolon by itself) stands for a NOP in C/C++, which is useful inbusy waitingsynchronization loops.
APL uses semicolons to separate declarations of local variables[49]: 61 and to separate axes when indexing multidimensional arrays, for example,matrix[2;3].[49]: 220, 275
Conventionally, in many languages, each statement is written on a separate line, but this is not typically a requirement of the language. In the above examples, two statements are placed on the same line; this is legal, because the semicolon separates the two statements. Thus programming languages like Java, the C family, JavaScript etc. use semicolons to obtain a proper structure in the respective languages.
The semicolon is often used to separate elements of a string of text. For example, multiple e-mail addresses in the "To" field in some e-mail clients have to bedelimited by a semicolon.
InMicrosoft Excel and otherspreadsheet applications, the semicolon is used as a list separator, especially in cases where the decimal separator is a comma, such as0,32; 3,14; 4,50, instead of0.32, 3.14, 4.50. It's also used as anfunction argument separator, when localization using comma as the decimal separator is used; for example:=SUMA(A1:D2)[h] in theCzech localization of Excel is equivalent of=SUM(A1:D2) in theUS English variant.
InLua,[52] semicolons or commas can be used to separate table elements.
InMATLAB andGNU Octave,[53] the semicolon can be used as a row separator when defining a vector or matrix (whereas a comma separates the columns within a row of a vector or matrix) or to execute a command silently, without displaying the resulting output value in the console.
In mathematical derivations, a semicolon is used to separate expressions in a sequence, similar to its use in spoken English, and may be considered either punctuation for the mathematical expressions, or as punctuation for the words spoken when reading the expressions. For example,completing the square:
Inpiecewise functions, a semicolon or comma may follow the subfunction or subdomain; the or can be omitted, in which case it seems replaced by the semicolon or comma.[58]
The semicolon is commonly used as part ofemoticons in order to indicatewinking or crying, as in;) and;_;.
Project Semicolon is the name of an anti-suicide initiative (since the semicolon continues a sentence rather than ending it) which has led to the punctuation mark becoming a highly symbolic and populartattoo (most commonly done on thewrist). While some consider this to be faith-based,[59] the movement is in general faith-neutral and inclusive of all people.
^Note: this is February 1495 by theVenetian calendar, or MVD inRoman numerals. Several texts mention the earliest printing year as 1494 without any attested source. This may be due to a misunderstanding: the textDe Aetna itself recalls a conversation from September 1494 (Gregorian calendar); the earliest attested printing occurred in February 1496 (Gregorian calendar).[6][7] See also thecolophon at the end of the book:impressum venetiis in aedibus aldi romani mense februario anno M.V.D. ("printed in Venice at thehouse of Aldo in February 1495 [m.v.]").[8]
^Manuzio notes: using just commas here is not sufficient, and using a colon instead of a semicolon would slow down the sentence too much.[11]
^Manuzio notes: if there were a comma afternon esse, then the sentence would be as if rushed forward head-first; however, since the sentence is in two parts, it must stop for a little bit before continuing. Moreover, he says, we can't use a colon, sinceRatio docet governs both parts of the sentence equally, not just the first.[11]
^Manuzio shows another example of where we need a semicolon instead of a colon;Tu andspectas govern both parts of the sentence equally.[11]
^Manuzio notes, this passage is taken fromCicero's letter to Torquatus (seeEpistulae ad Familiares). He uses this example, he says, to show situations where both the semicolon and colon are needed for division.[11]
^According to theBritish Library, the book was "written in 1623 and lost in a fire, but rewritten and published after Jonson's death".[13]
^The 1640 version of the text calls the character; asub-distinction,[15] the 1692 version names it asemicolon.[14] Moreover, the order of the comma and semicolon seem to have been reversed by mistake in the 1640 version. Thus, the comma is mistakenly described as having a longer breathe than the semicolon.[15]
^The function name is also translated, unlikeLibreOffice Calc, which does not use Czech function names.
^"Using semicolons".The Writing Center.Archived from the original on 2020-11-11. Retrieved2020-11-08.A semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought. When a semicolon is used to join two or more ideas (parts) in a sentence, those ideas are then given equal position or rank.
^Murray, Lindley (1798)."Part IV: Of Punctuation. Chapter II: Of the Semicolon".English Grammar, Adapted to Different Classes of Learners. With an Appendix, Containing Rules and Observations, For Assisting The More Advanced Students to Write With Perspicuity and Accuracy (4th ed.). London: Wilson, Spence, and Mawman. pp. 226–227.Archived from the original on 2022-10-24. Retrieved2022-10-24.
^The Cambridge Grammar of the English Language, Chapter 19, § 7.
^"Semicolon". 7 January 2016.Archived from the original on 20 July 2021. Retrieved20 July 2021.
^Spencer, Dave (15 February 2011)."Review".glyphic.design (review ofThe Chicago Manual of Style, 16th edition).Archived from the original on 28 August 2019. Retrieved28 August 2019.
^"R Language Definition".The Comprehensive R Archive Network (subtitle: 3.2 Control structures). 31 October 2022.Archived from the original on 21 November 2022.
^"GNU Octave (version 7.3.0)". GNU Octave. 2 November 2022. 1.2.2 Creating a Matrix.Archived from the original on 28 November 2022. Retrieved28 November 2022.
^"Entity".MDN. 21 September 2022.Archived from the original on 25 November 2022.
Gannon, J. D.; Horning, J. J. (1975).The impact of language design on the production of reliable software.Proceedings of the international conference on Reliable software. pp. 10–22.doi:10.1145/800027.808420.
Truss, Lynn (2004).Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation. New York: Gotham Books.ISBN1-59240-087-6.