Is this grammatical? "Each method has features in which context to use it." [closed]

Is this a grammatically correct sentence?

"Programming language has a four methods. Each method has features in which context to use it."


No, it is not grammatical. The antecedent of which seems to be features. If we separate the sentence into two clauses, we get Each method has features. In those features context to use it. That clearly makes no sense.


Something isn't sitting right with me on this sentence.

"Programming language has a four methods. Each method has features in which context to use it."

I'd replace the second sentence (subordinate clause which doesn't make sense when separated) with something slightly different. Perhaps ...has features, each with different contexts in which they are used.

In short, no it's not grammatically correct and needs recasting.


Each method has features in which context to use it.

No, it's not grammatical. Nor does it make any sense. It's a garden path ending in a trackless maze. The way to tell this is to try to unwind all the rules that have been applied to fold the sentence into this shape and see where it comes from.

The first four words cause no problems, but in which context to use it is a horrifically complex and ill-constructed constituent. Technically, it's what's called a Relative Infinitive, and it's been further modified by having a relative pro-adjective which modifying another noun context, which is the object of a preposition in.

And that whole preposition phrase has been Pied-Piped to the beginning of the infinitive, which lacks a subject, so one needs to be determined, in order to understand the sentence, along with an antecedent for which, and a coreferent for it, the direct object of use.

In other words, something like the skeleton of the relative clause might be represented as

... features, such that [someone] uses it in which contexts

The [someone] is just an ordinary indefinite, no problem with an infinitive. However, what's it? -- it's singular, so it can't be features. Then does which refer to features? And what the hell is contexts doing there? You can't say **in features contexts*. You can't even say **in feature contexts* and expect it to mean anything here.

I could speculate about where this all came from, given the sentential context, but this seems clear enough. Or unclear enough.