I have legal custody of someone child. How do I file to get earned income credit and child tax credit? The child is not related to me but has lived with me all year.

I need to know what category to file her under to get the earned income credit and child tax credit. She is not related but I have had her all year.