1

In a definition sentence like "React is a JavaScript library that lets you create single-page web applications," does the relative clause " that lets you create single-page web applications" modify "React" or "JavaScript library

The rule of proximity says the JavaScript library is being modified, also according to some grammar books, the JavaScript library again due to the fact "which type of library is meant? -> That lets you...".
However, the definition (context) says React.

This is not the only sentence of which I want to know the subject. But sentences like this one create confusion for me.

4
  • Semantically, I don't see how it makes any difference. But in something like John is a man who likes pizza, I think most people would say who likes pizza modifies John, not a man. If only because it's effectively just circumlocution for John likes pizza. Commented Apr 17 at 12:09
  • ...also bear in mind that "React is a JavaScript library that lets you create single-page web applications" could in principle be used even if in fact no other JavaScript libraries let you do this. I don't know or care whether that's true in the real world; I'm just making a point about the verbal construction here. Commented Apr 17 at 12:14
  • Because "React is (a JavaScript library that lets you create single-page web applications)," everything inside the parens applies to React. But that's true only because the dependent clause belongs to JS, not because it modifies React directly. Commented Apr 17 at 13:07
  • 1
    The relative clause modifies the nominal "Javascript library".
    – BillJ
    Commented Apr 18 at 16:15

3 Answers 3

1

React is a JavaScript library that lets you create single-page web applications

In English, a relative clause goes after the noun that it modifies. So the relative clause here modifies "library" (or, in other terms, it is a modifier within the noun phrase that starts with "a JavaScript library").

Many sentences with a copula (or "linking verb") can be written in either order. You could rewrite this sentence to change which noun phrase is the subject, and the relative clause stays after "library":

  • A JavaScript library that lets you create single-page web applications is React.

(Or, perhaps more naturally, "One JavaScript library that... is React".)

As you note, this is a definition sentence. Semantically, the relative clause, the category "JavaScript library", and the name "React" all help describe the same thing.

1
  • I wouldn't quite go along with what you say. Integrated (defining) relatives modify nominals, not noun phrases. In the OP's example, the relative clause modifies the nominal "Javascript library".
    – BillJ
    Commented Apr 18 at 7:19
0

Here, the relative clause is modifying JavaScript library.

it means JavaScript Library - let you create single-page web applications.

if you want to convey that React- let you create single-page web applications, you have to put the relative clause after React.

But, linking verb is connects complement (JavaScript Library) with subject ( React). So, both represents the subject and complement as unique. So, it seems confusing.

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Apr 20 at 9:27
0

You can rewrite it as-

React that lets you create single-page web applications is a JavaScript library.

Now, the relative clause is modifying React. It means the single page web application feature is provided in React.

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Apr 20 at 9:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .