Bracket
A bracket is either of two tall fore- or back-facing punctuation marks commonly used to isolate a segment of text or data from its surroundings. Typically deployed in symmetric pairs, an individual bracket may be identified as a left or right bracket or, alternatively, an opening paired bracket or closing paired bracket, respectively, depending on the directionality of the context.
Specific forms of the mark include rounded brackets, square brackets, curly brackets, and angle brackets, as well as various less common pairs of symbols.
As well as signifying the overall class of punctuation, the word bracket is commonly used to refer to a specific form of bracket, which varies from region to region. In North America, an unqualified 'bracket' typically refers to the square bracket; in Britain, the round bracket.
History
⟨ ⟩ were the earliest type of bracket to appear in written English. Desiderius Erasmus coined the term lunula to refer to the rounded recalling the shape of the crescent moon.[|Names] for various bracket symbols
Some of the following names are regional or contextual.- – parentheses, brackets, parens, round brackets, first brackets, circle brackets or smooth brackets.
- – braces, curly brackets, definite brackets, swirly brackets, curly braces, birdie brackets, French brackets, Scottish brackets, squirrelly brackets, gullwings, seagulls, squiggly brackets, twirly brackets, Tuborg brackets, accolades, pointy brackets, second brackets, fancy brackets, M Brace, moustache brackets.
- – brackets, square brackets, closed brackets, hard brackets, third brackets, crotchets.
- ⟨ ⟩ – angle brackets, less-than/greater-than signs, pointy brackets, triangular brackets, diamond brackets, tuples, chevrons, guillemets, broken brackets, brokets.
- ⸤ ⸥ 「 」 – corner brackets
- ⟦ ⟧ – double square brackets, white square brackets, Scott brackets
- 〔 〕 – tortoise shell brackets
Similarly, the corner-brackets 「 」 are quotation marks used in East Asian languages, though they have been repurposed for other contexts.
Typography
In English, typographers mostly prefer not to set brackets in italics, even when the enclosed text is italic. However, in other languages like German, if brackets enclose text in italics, they are usually also set in italics.Types and uses
Parentheses
Usage in writing
Parentheses contain material that serves to clarify or is aside from the main point. A milder effect may be obtained by using a pair of commas as the delimiter, though if the sentence contains commas for other purposes, visual confusion may result. That issue is fixed by using a pair of dashes instead, to the.In American usage, parentheses are usually considered separate from other brackets, and calling them "brackets" is unusual.
Parentheses may be used in formal writing to add supplementary information, such as "Sen. John McCain spoke at length". They can also indicate shorthand for "either singular or plural" for nouns, e.g. "the claim". It can also be used for gender neutral language, especially in languages with grammatical gender, e.g. "he agreed with his/her physician".
Parenthetical phrases have been used extensively in informal writing and stream of consciousness literature. Examples include the southern American author William Faulkner as well as poet E. E. Cummings.
Parentheses have historically been used where the dash is currently used in alternatives, such as "parenthesis).
Any punctuation inside parentheses or other brackets is independent of the rest of the text: "Mrs. Pennyfarthing was my landlady." In this usage, the explanatory text in the parentheses is a parenthesis. Parenthesized text is usually short and within a single sentence. Where several sentences of supplemental material are used in parentheses the final full stop would be within the parentheses, or simply omitted. Again, the parenthesis implies that the meaning and flow of the text is supplemental to the rest of the text and the whole would be unchanged were the parenthesized sentences removed.
In more formal usage, "parenthesis" may refer to the entire bracketed text, not just to the punctuation marks used.
Usage in enumerations
Lower-case Latin letters used as indexes, rather than bullets or numbers, followed by an unpaired parenthesis, are used in ordered s especially in:a) educational testing,
b) technical writing and diagrams,
c) market research, and
d) elections.
Usage in mathematics
Parentheses are used in mathematical notation to indicate grouping, often inducing a different order of operations. For example: in the usual order of algebraic operations, equals 14, since the multiplication is done before the addition. However, equals 20, because the parentheses override normal precedence, causing the addition to be done first. Some authors follow the convention in mathematical equations that, when parentheses have one level of nesting, the inner pair are parentheses and the outer pair are square brackets. Example:A related convention is that when parentheses have two levels of nesting, curly brackets are the outermost pair. Following this convention, when more than three levels of nesting are needed, often a cycle of parentheses, square brackets, and curly brackets will continue. This helps to distinguish between one such level and the next.
Parentheses are also used to set apart the arguments in mathematical functions. For example, is the function applied to the variable . In coordinate systems parentheses are used to denote a set of coordinates; so in the Cartesian coordinate system may represent the point located at 4 on the x-axis and 7 on the y-axis.
Parentheses may be used to represent a binomial coefficient, and also matrices.
Usage in programming languages
Parentheses are included in the syntaxes of many programming languages. Typically needed to denote an argument; to tell the compiler what data type the Method/Function needs to look for first in order to initialise. In some cases, such as in LISP, parentheses are a fundamental construct of the language. They are also often used for scoping functions and for arrays. In syntax diagrams they are used for grouping eg in Extended Backus–Naur form.Usage in other scientific fields
Parentheses are used in chemistry to denote a repeated substructure within a molecule, e.g. HC3 or, similarly, to indicate the stoichiometry of ionic compounds with such substructures: e.g. Ca2.They can be used in various fields as notation to indicate the amount of uncertainty in a numerical quantity. For example:
is equivalent to:
e.g. the value of the Boltzmann constant could be quoted as J⋅K−1
Usage online
Many online Roleplayers use double parentheses to connotate out-of-character messages that one may send another.Square brackets
Usage in published text
Square brackets—also called crotchets or simply brackets —are often used to insert explanatory material or to mark where a passage was omitted from an original material by someone other than the original author, or to mark modifications in quotations.A bracketed ellipsis, , is often used to indicate omitted material: "I'd like to thank for their tolerance "
Bracketed comments inserted into a quote indicate where the original has been modified for clarity: "I appreciate it , but I must refuse", and "the future of psionics is in doubt". Or one can quote the original statement "I hate to do laundry" with a modification inserted: He "hate to do laundry".
Additionally, a small letter can be replaced by a capital one, when the beginning of the original printed text is being quoted in another piece of text or when the original text has been omitted for succinctness— for example, when referring to a original: "To the extent that policymakers and elite opinion in general have made use of economic analysis at all, they have, as the saying goes, done so the way a drunkard uses a lamppost: for support, not illumination", can be quoted succinctly as: "olicymakers have made use of economic analysis the way a drunkard uses a lamppost: for support, not illumination." When nested parentheses are needed, brackets are sometimes used as a substitute for the inner pair of parentheses within the outer pair. When deeper levels of nesting are needed, convention is to alternate between parentheses and brackets at each level.
Alternatively, empty square brackets can also indicate omitted material, usually single letter only. The original, "Reading is also a process and it also changes you." can be rewritten in a quote as: It has been suggested that reading can "also change you".
The bracketed expression "" is used after a quote or reprinted text to indicate the passage appears exactly as in the original source, where it may otherwise appear that a mistake has been made in reproduction.
In translated works, brackets are used to signify the same word or phrase in the original language to avoid ambiguity.
For example: He is trained in the way of the open hand .
Usage in proofreading
Brackets are added to the sides of text in proofreading to indicate changes in indentation:Move left | Paradise Lostfloor function, the Lie bracket, equivalence classes, the [Iverson bracket">Floor and ceiling functions">floor function, the Lie bracket, equivalence classes, the [Iverson bracket, and matrices. Square brackets may also represent closed intervals; for example, represents the set of real numbers from 0 to 5 inclusive. Square brackets can also be used in chemistry to represent the concentration of a chemical substance in solution and to denote charge a Lewis structure of an ion, repeating chemical units and transition state structures, among other uses. Usage in programming languagesBrackets are used in many computer programming languages, primarily to force the order of evaluation and for parameter lists and array indexing. But they are also used to denote general tuples, sets and other structures, just as in mathematics. There may be several other uses as well, depending on the language at hand. In syntax diagrams they are used for optional eg in Extended Backus–Naur form.Other usesIn linguistics, phonetic transcriptions are generally enclosed within square brackets, often using the International Phonetic Alphabet, whereas phonemic transcriptions typically use paired slashes. Pipes are often used to indicate a morphophonemic rather than phonemic representation. Other conventions are double slashes, double pipes and curly brackets. In lexicography, square brackets usually surround the section of a dictionary entry which contains the etymology of the word the entry defines.Square brackets are used to denote parts of the text that need to be checked when preparing drafts prior to finalizing a document. They often denote points that have not yet been agreed to in legal drafts and the year in which a report was made for certain case law decisions. Curly bracketsCurly brackets, also known as curly braces or simply braces, flower brackets and squiggly brackets, are rarely used in prose and have no widely accepted use in formal writing, but may be used to mark words or sentences that should be taken as a group, to avoid confusion when other types of brackets are already in use, or for a special purpose specific to the publication. More commonly, they are used to indicate a group of lines that should be taken together, as in when referring to several lines of poetry that should be repeated.In music, they are known as "accolades" or "braces", and connect two or more lines of music that are played simultaneously. In mathematics they delimit sets, Curly brackets are often also used to denote the Poisson bracket between two quantities. Usage in programming languagesIn many programming languages, they enclose groups of statements and create a local scope. Such languages are therefore called curly bracket languages. They are used for enumerated type, eg in C. In syntax diagrams they are used for repetition eg in Extended Backus–Naur form.PhoneticsAs an extension to the International Phonetic Alphabet, braces are used for prosodic notation.Angle bracketsAngle brackets are often used to enclose highlighted material.In physical sciences, angle brackets are used to denote an average over time or over another continuous parameter. For example, The inner product of two vectors is commonly written as, but there are other notations used. In mathematical physics, especially quantum mechanics, it is common to write the inner product between elements as, as a short version of, or, where is an operator. This is known as Dirac notation or bra–ket notation. In set theory, chevrons or parentheses are used to denote ordered pairs and other tuples, whereas curly brackets are used for unordered sets. In linguistics, angle brackets identify graphemes or orthography, as in "The English word is spelled." In epigraphy, they may be used for mechanical transliterations of a text into the Latin script. In textual criticism, and hence in many editions of pre-modern works, chevrons denote sections of the text which are illegible or otherwise lost; the editor will often insert their own reconstruction where possible within them. In HTML, chevrons are used to bracket meta text. For example denotes that the following text should be displayed as bold. Pairs of meta text tags are required – much as brackets themselves are usually in pairs. The end of the bold text segment would be indicated by. This usage is sometimes extended as a mechanism for communicating mood, or tone, in digital formats such as messaging, for example adding “<sighs>” at the end of a sentence. Chevrons are infrequently used to denote words that are thought instead of spoken, such as: The mathematical or logical symbols for greater-than and less-than are inequality symbols; when either symbol is bisected by a vertical line, it represents "not greater than" or "not less than," respectively. These symbols are not punctuation marks when used, as intended, to represent an inequality. However, as true chevrons are not present on computer keyboards, the available less-than and greater-than symbols are often used instead. They are loosely referred to as angle brackets or chevrons in this case, but more properly—and less confusingly—as pointy brackets. Single and double pairs of comparison operators are sometimes used as a fallback instead of guillemets, when the proper characters are not available on the keyboard nor in the input editor. Similarly, early Internet messaging conventions developed to use the greater-than sign, available in the ASCII character set, to mark quoted lines. This format, known as Usenet quoting, is used by email clients when operating in plain text mode. In comic books, chevrons are often used to mark dialogue that has been translated notionally from another language; in other words, if a character is speaking another language, instead of writing in the other language and providing a translation, one writes the translated text within chevrons. Since no foreign language is actually written, this is only notionally translated. In continuum mechanics, chevrons may be used as Macaulay brackets. In East Asian punctuation, angle brackets are used as quotation marks. Chevron-like symbols are part of standard Chinese, Japanese and Korean punctuation, where they generally enclose the titles of books: ︿ and ﹀ or ︽ and ︾ for traditional vertical printing, and 〈 and 〉 or 《 and 》 for horizontal printing. Lenticular bracketsSome East Asian languages use lenticular brackets 【 】, a combination of square brackets and round brackets called in Chinese andすみ付き in Japanese. and used in titles and headings in Japanese. Floor and ceiling cornersThe floor corner brackets and, the ceiling corner brackets and are used to denote the integer floor and ceiling functions.Quine corners and half bracketsThe Quine corners and have at least two uses in mathematical logic: either as quasi-quotation, a generalization of quotation marks, or to denote the Gödel number of the enclosed expression.Half brackets are used in English to mark added text, such as in translations: "Bill saw ⸤her⸥". In editions of papyrological texts, half brackets, ⸤ and ⸥ or ⸢ and ⸣, enclose text which is lacking in the papyrus due to damage, but can be restored by virtue of another source, such as an ancient quotation of the text transmitted by the papyrus. For example, Callimachus Iambus 1.2 reads: ἐκ τῶν ὅκου βοῦν κολλύ⸤βου π⸥ιπρήσκουσιν. A hole in the papyrus has obliterated βου π, but these letters are supplied by an ancient commentary on the poem. Second intermittent sources can be between ⸢ and ⸣. Quine corners are sometimes used instead of half brackets. Double bracketsDouble brackets, ⟦ ⟧, are used to indicate the semantic evaluation function in formal semantics for natural language and denotational semantics for programming languages. The brackets stand for a function that maps a linguistic expression to its “denotation” or semantic value. In mathematics, double brackets may also be used to denote intervals of integers or, less often, the floor function. In papyrology, following the Leiden Conventions, they are used to enclose text that has been deleted in antiquity.Brackets with quillsKnown as "spike parentheses", and, are used in Swedish bilingual dictionaries to enclose supplemental constructions.Specific usesComputingThe various bracket characters are frequently used in many programming languages as operators or for other syntax markup. For instance, in C-like languages, are often used to delimit a code block, and the parameters of method calls are generally enclosed by .In C, C++, Java and other C-derived languages—as well as in Scheme-influenced languages that have adopted C/Java syntax, such as JavaScript—the " " symbols are referred to as "braces" or "curly braces" and never as brackets. Since the term "brace" is documented in the definitive programming specifications for these languages, it is preferable to use the correct term brace so there is no confusion between the brace and the bracket, used to denote other concepts, such as array indices.MathematicsIn addition to the use of parentheses to specify the order of operations, both parentheses and brackets are used to denote an interval, also referred to as a half-open range. The notation is used to indicate an interval from to that is inclusive of but exclusive of. That is, would be the set of all real numbers between 5 and 12, including 5 but not 12. The numbers may come as close as they like to 12, including 11.999 and so forth, but 12.0 is not included. In some European countries, the notation is also used for this. The endpoint adjoining the bracket is known as closed, whereas the endpoint adjoining the parenthesis is known as open. If both types of brackets are the same, the entire interval may be referred to as closed or open as appropriate. Whenever +∞ or −∞ is used as an endpoint, it is normally considered open and adjoined to a parenthesis. See Interval for a more complete treatment.In quantum mechanics, chevrons are also used as part of Dirac's formalism, bra–ket notation, to note vectors from the dual spaces of the Bra . Mathematicians will also commonly write for the inner product of two vectors. In statistical mechanics, chevrons denote ensemble or time average. Chevrons are used in group theory to write group presentations, and to denote the subgroup generated by a collection of elements. Note that obtuse angled chevrons are not always distinguished from a pair of less-than and greater-than signs <>, which are sometimes used as a typographic approximation of chevrons. In group theory and ring theory, brackets denote the commutator. In group theory, the commutator is commonly defined as. In ring theory, the commutator is defined as. Furthermore, in ring theory, braces denote the anticommutator where is defined as. The bracket is also used to denote the Lie derivative, or more generally the Lie bracket in any Lie algebra. Various notations, like the vinculum have a similar effect to brackets in specifying order of operations, or otherwise grouping several characters together for a common purpose. In the Z formal specification language, braces define a set and chevrons define a sequence. AccountingTraditionally in accounting, contra amounts are placed in parentheses. A debit balance account in a series of credit balances will have brackets and vice versa.CitationsWhen quoted material is in any way altered, the alterations are enclosed in square brackets within the quotation to show that the quotation is not exactly as given, or to add an annotation. For example: The Plaintiff asserted his cause is just, stating,In the original quoted sentence, the word "my" was capitalized: it has been modified in the quotation given and the change signalled with brackets. Similarly, where the quotation contained a grammatical error, the quoting author signalled that the error was in the original with "". LawSquare brackets are used in some countries in the citation of law reports to identify parallel citations to non-official reporters. For example: Chronicle Pub. Co. v. Superior Court, 54 Cal.2d 548, . In some other countries, square brackets are used to indicate that the year is part of the citation and parentheses are used to indicate the year the judgment was given. For example, National Coal Board v England AC 403, is in the 1954 volume of the Appeal Cases reports although the decision may have been given in 1953 or earlier, whereas 98 Sol Jo 176 reports a decision from 1954, in volume 98 of the Solicitor's Journal which may be published in 1955 or later.Sports, the diagrammatic representation of the series of games played during a tournament usually leading to a single winner, are so named for their resemblance to brackets or braces.Encoding in digital mediaRepresentations of various kinds of brackets in Unicode and HTML are given below.Braces first became part of a character set with the 8-bit code of the IBM 7030 Stretch. The angle brackets or chevrons at U+27E8 and U+27E9 are for mathematical use and Western languages, whereas U+3008 and U+3009 are for East Asian languages. The chevrons at U+2329 and U+232A are deprecated in favour of the U+3008 and U+3009 East Asian angle brackets. Unicode discourages their use for mathematics and in Western texts, because they are canonically equivalent to the CJK code points U+300x and thus likely to render as double-width symbols. The less-than and greater-than symbols are often used as replacements for chevrons. |