How do I tell if “You” is used as a subject or an object in a sentence?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use a Natural Language Processing tool or library. There are a wide range mentioned in http://en.wikipedia.org/wiki/List_of_natural_language_processing_toolkits and you can use the one most suitable to your problem or language.
Most of these will carry out Part-of-Speech tagging (POSTagging) which identifies nouns, prepostions, etc. Then they will group the POS into NounPhrase, verbPhrase, etc. In simple terms:
is parsed as
while
is parsed as
(schemes of POS vary)
The “you” is a personal pronoun (PP) and if it occurs in the VP it’s an object.
It gets more complicated than this, but this is a start