In linguistics, a suffix (also sometimes termed postfix or ending or, in older literature, affix) is an affix which is placed after the stem of a word. Common examples are case endings, which indicate the grammatical case of nouns or adjectives, and verb endings, which form the conjugation of verbs. Particularly in the study of Semitic languages, a suffix is called an afformative, as they can alter the form of the words. In Indo-European studies, a distinction is made between suffixes and endings (see Proto-Indo-European root). A word-final segment that is somewhere between a free morpheme and a bound morpheme is known as a suffixoid or a semi-suffix (e.g., English -like or German -freundlich 'friendly').
Suffixes can carry grammatical information (inflectional suffixes) or lexical information (derivational suffixes). An inflectional suffix is sometimes called a desinence.
Some examples in European languages:
Many synthetic languages—Czech, German, Finnish, Latin, Hungarian, Russian, Turkish, etc.—use a large number of endings.
A substring of a string is another string
that occurs "in"
. For example, "the best of" is a substring of "It was the best of times". This is not to be confused with subsequence, which is a generalization of substring. For example, "Itwastimes" is a subsequence of "It was the best of times", but not a substring.
Prefix and suffix are refinements of substring. A prefix of a string is a substring of
that occurs at the beginning of
. A suffix of a string
is a substring that occurs at the end of
.
A substring (or factor) of a string is a string
, where
and
. A substring of a string is a prefix of a suffix of the string, and equivalently a suffix of a prefix. If
is a substring of
, it is also a subsequence, which is a more general concept. Given a pattern
, you can find its occurrences in a string
with a string searching algorithm. Finding the longest string which is equal to a substring of two or more strings is known as the longest common substring problem.
Example: The string ana
is equal to substrings (and subsequences) of banana
at two different offsets:
A suffix is part of a word; an affix that follows the morphemes to which it can attach.
Suffix may also refer to: