1

I have this sentence:

The main idea of the rule-based approaches is to judge each node of the DOM tree whether it is a text node by its features.

Should it be:

The main idea of the rule-based approaches is to judge each node of the DOM tree by its features whether it is a text node or not.

Update:

Or maybe

The main idea of the rule-based approaches is to judge each node of the DOM tree by its features to see/check whether it is a text node or not.

8
  • 4
    Neither is valid (you can't just stick the whether clause on the end like that). One valid alternative would be The main idea of the rule-based approaches is to judge by its features whether each node is a text node or not. That involves a "forward reference", which could be avoided with, say, ...to judge each node by its features [in order] to ascertain whether it is a text node or not. Commented Aug 11, 2015 at 18:09
  • @FumbleFingers, what about The main idea of the rule-based approaches is to judge each node of the DOM tree by its features to see whether it is a text node or not.
    – Ahmad
    Commented Aug 11, 2015 at 18:16
  • 1
    That sounds much better to me.
    – Catija
    Commented Aug 11, 2015 at 18:23
  • 1
    @FumbleFingers I don't agree. The OP's second is fine if it means: "... judge each node by its features regardless of whetherthat node is a text node or not." Commented Aug 11, 2015 at 18:49
  • @Araucaria thank you, but I didn't mean that, actually I am trying to use two adjuncts for "judge".
    – Ahmad
    Commented Aug 11, 2015 at 18:52

1 Answer 1

1

... two adjuncts for judge...

Judge cannot take simultaneously both a direct object and an integrated whether-clause.

If the whether-clause is not integrated, then, yes, it can happen:

It is not ours to judge a man — whether he have lust in his heart.

With respect to forward references, they are not ungrammatical but they can be less than clear:

The main purpose of these rules-based approaches is to judge, by its features, whether each node in the DOM tree is a text node.

You must log in to answer this question.

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