Research Article

A Grammar-Based Semantic Similarity Algorithm for Natural Language Sentences

Table 1

Selected linkages used in the algorithm; superscript denotes the optional linking types.

LinksSubtypesDescriptions

connects pre-noun adjectives to nouns, such as “delicious food” and “black dog”.

connects noun-modifiers (singular noun) to nouns, such as “bacon toast” and “seafood pasta”.


connects noun to a verb in restrictive relative clauses, and and are used to enforce noun-verb agreement in subject-type relative clauses (relative clauses without “,”), such as “He will see his son who lives in New York”.
is used for words “*ever” like “whatever” and “whoever”.
  is used for object-type questions with words like “which", “what", “who," and so forth.

connects determiners to nouns, connects singular determiners like “a”, “one” to nouns, such as “a cat”, “one month.
connects plural determiners like “some”, “many” to countable nouns.
connects mass determiners to uncountable nouns.

is used to connect definite determiners like “the”, “his”, “my” to number expressions and adjectives acting as nouns, such as “my two sisters”.

is used to connect “the" with proper nouns.

is used to connect determiners with nouns in certain idiomatic time expressions, such as “last week" and “this Tuesday".  connects time expressions like “next”, “last” to nouns.
connects time expressions like “this”, “every” to nouns, such as “every Sunday”.

connects expressions where proper nouns are introduced by a common noun, such as “the famous physicist Edward Witten”.

connects prepositions to their objects. Proper nouns, common nouns, accusative pronouns, and words that can act as noun-phrases have “ ” link.

connects prepositions like "of" and "for" to proper-nouns, such as “the WIN7 of Microsoft”.

connects nouns to postnominal modifiers such as prepositional phrases, participle modifiers, prepositional relatives, and possessive relatives, in which works in prepositional phrases modifying nouns.

allows certain prepositions to modify proper nouns, such as the above sentence.

links nouns to postnominal noun modifiers surrounded by commas, such as “the teacher, who…”

connects transitive verbs to nouns, pronouns, and words that can act as noun-phrases or heads of noun-phrases, such as “told him”, “saw him”.

is used to connect nouns to relative clauses, such as “The man who…”.

connects subject nouns to finite verbs. The subtype  connects singular nouns words to singular verb, such as “She sings very well”.
connects plural nouns to plural verb forms, such as “The monkeys ate these apples.
is used for question words that act as noun-phrases in subject-type questions, such as “Who is there.

is used in subject-verb inversion, such as “Which one do you want.

is used with nouns that both satisfy the determiner requirement and subject-object requirement, such as “We check that per hour.

connects “when" phrases back to time-nouns, such as “This month when I was in Taipei…”

connects plural noun forms ending in “s” to “ ”, such as “The students’ parents.