Which sentence is right?
- 何かを食べるのが必要
This is right(but somewhat unnatural).
- 何かを食べるを必要
This is wrong(Even so most native speakers would understand what you mean).
This is because 必要 is not a verb.
The sentence @user3856370 wrote:
何か食べるものがほしい。
is better.
It seems like you are assuming that the pattern OBJECT を VERB
will translate to SUBJECT VERB OBJECT
in English and similarly that SUBJECT が VERB
equates to SUBJECT is(are,be) ADJECTIVE
or SUBJECT is(are,be) NOUN
, right?
I am not really understanding what you mean by "verb" in your question.
Should You use です
?
です
is optional in terms of grammar, but I feel that adding です
is better.
です
impresses listeners politeness or objectivity.
Moreover, in this sentence, you might be trying to ask for a favor or persuade someone to do something. Especially in these cases, adding です
is better since it is more polite.
Thus, I would suggest:
何か食べるものがほしいです
IS having two を-particles allowed?
For example, the sentence
何か を 食べること を やめた
is grammatical.
Using the NOUN(SUBJECT) を VERB
→ OBJECT VERB NOUN(SUBJECT)
rule,
何かを食べるを必要
There are two candidates for parsing this:
- ((何か を 食べる) を 必要)
- (何か を (食べる を 必要))
candidate 2
食べる を 必要
is VERB を ADJECTIVE
.
This way of parsing it is not grammatical, thus candidate 2 is invalid.
candidate 1
何か を 食べる
is SUBJECT を VERB
.
This is grammatical and a complete sentence.
Next,
((何か を 食べる) を 必要) is SENTENCE を ADJECTIVE
.
This is not grammatical, thus candidate 1 is invalid.
And thus,
何かに食べるを必要
is wrong.