Main point summary
You have two choices, consider yourself religious or demonstrate your religion by caring for those God does and keeping your heart clean from the corruption of the world.
If anyone thinks he is religious
Those who consider themselves religious
If you consider yourself religious
q and does not bridle his tongue
and yet do not keep a tight rein on their tongues
and don't control you speech
but deceives his heart,
you are wrong
this person’s r religion is worthless.
and their religion is worthless.
Then you should know your religion is vain.
Religion that is pure and undefiled before God, the Father, is this:
Religion that God our Father accepts as pure and faultless is this:
On the other hand, this is true religion in the sight of God
s to visit t orphans and widows in their affliction,
to look after orphans and widows in their distress
care for orphans and widows
and u to keep oneself v unstained from the world.
and to keep oneself from being polluted by the world.
and keep yourself from the corruption of this world.
Here we have the last two verses of James chapter 1, it is important to remember the context into which James writes these words. Namely the readers being doers of the word and not just hearers. With that in mind James clearly views our actions as more telling of our hearts then our empty words. He challenges us not to think of ourselves as religious while lacking control over our speech because the reality is that we have only deceived ourselves. He is advocating obeying the word and demonstrating our religion by looking after those God counts as important though the world views them otherwise, but he is clear that we must also resist the influences of this world and remain pure as well. Thus James calls us to external action while maintaining the clarity and conviction of our faith.