IRS Publication 501, page 10 lists all the rules for claiming someone as your dependent. Among other things, three of the rules that are pertinent here: the dependent must reside with you for at least half of the year, they must meet the age requirement, AND you must have provided at least half...