diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml
new file mode 100644
index be43cdf..afb589b
*** a/doc/src/sgml/pgtrgm.sgml
--- b/doc/src/sgml/pgtrgm.sgml
***************
*** 112,119 ****
real
! Same as word_similarity(text, text), but forces
! extent boundaries to match word boundaries.
--- 112,119 ----
real
! Same as word_similarity(text, text), but
! considers the set of trigrams to be of the same length.
***************
*** 164,179 ****
This function returns a value that can be approximately understood as the
greatest similarity between the first string and any substring of the second
string. However, this function does not add padding to the boundaries of
! the extent. Thus, a whole word match gets a higher score than a match with
! a part of the word.
! At the same time, strict_word_similarity(text, text)
! has to select an extent that matches word boundaries. In the example above,
! strict_word_similarity(text, text) would select the
! extent {" w"," wo","wor","ord","rds","ds "}, which
! corresponds to the whole word 'words'.
# SELECT strict_word_similarity('word', 'two words'), similarity('word', 'words');
--- 164,182 ----
This function returns a value that can be approximately understood as the
greatest similarity between the first string and any substring of the second
string. However, this function does not add padding to the boundaries of
! the extent. Thus, the number of additional characters present in the
! second string is not considered, except for the mismatched word boundry.
! The function strict_word_similarity(text, text)
! does consider additional characters in the second string. In the
! example above, strict_word_similarity(text, text)
! would use the full trigram for the second string when computing
! similarity, not just the part of the trigram that matches the
! first string. For example, it would use the {" w","
! wo","wor","ord","rds","ds "}, which corresponds to the whole
! word 'words'.
# SELECT strict_word_similarity('word', 'two words'), similarity('word', 'words');
***************
*** 186,194 ****
Thus, the strict_word_similarity(text, text) function
! is useful for finding similar subsets of whole words, while
word_similarity(text, text) is more suitable for
! searching similar parts of words.
--- 189,197 ----
Thus, the strict_word_similarity(text, text) function
! is useful for finding the similarity to whole words, while
word_similarity(text, text) is more suitable for
! finding the similarity for parts of words.