Dictionary entry
formal language
Last updated
Meanings
nouncountabletechnicalcomputing
A set of strings made from a finite alphabet, studied in computer science and linguistics.
Grammar: Countable: a formal language, formal languages.
Patterns
- a formal language over an alphabet
- the formal language generated by a grammar
In automata theory, a formal language is defined as a subset of all possible strings over an alphabet.
Regular expressions describe a type of formal language used in text processing.
noununcountable
Language that follows strict rules of grammar and style, often used in official or academic settings.
Grammar: Uncountable: use formal language, not a formal language.
Patterns
- use formal language
- in formal language
Academic writing requires formal language and precise terminology.
The letter was written in formal language, with no contractions or slang.
Word forms
| plural | formal languages |
|---|
Common combinations
- define a formal language
- The professor defined a formal language using set notation.
- context-free formal language
- Programming languages are often based on context-free formal languages.
- formal language theory
- Formal language theory underpins compiler design.
Synonyms and how they differ
- artificial language
- Often refers to constructed languages like Esperanto, not mathematical sets of strings.
Opposites
Word family
Commonly confused: formal language or official language?
formal language vs official language
An official language is one given legal status by a government; a formal language is a mathematical or stylistic concept.
Practice
In computer science, what is a formal language?
Choose one answer.
In computer science, a formal language is a mathematical set of strings, not a ceremonial or natural language.
Make it your own
Write a sentence using “formal language”, then check it and compare it with the examples above.