Of his own will begat he us with the word of truth, that we should be a kind of firstfruits of his creatures.
(Jas 1:18 KJV)
We are begotten through the word of truth.Behold old things are passed away all things are new and of GOD
Now Watch how James builds on that.
Wherefore lay apart all filthiness and superfluity of naughtiness, and receive with meekness the (begotten) engrafted word, which is able to save your souls. But be ye doers of the (engrafted) word, and not hearers only, deceiving your own selves.
(Jas 1:21-22 KJV)
Begotten,receiving with meekness the engrafted word. So Say not in thine heart, Who shall ascend into heaven? (that is, to bring Christ (the engrafted Word) down from above
Or, Who shall descend into the deep? (that is, to bring up Christ (the engrafted Word) again from the dead.) But what saith it? The word (Christ) is nigh thee, even in thy mouth, and in thy heart: that is, the word of faith, which we preach;
(Rom 10:6-8 KJV)
For if any be a hearer of the (engrafted) word, and not a doer, he is like unto a man beholding his natural face (the new man in Christ, the firstfruits of his creatures) in a glass: For he beholdeth himself, and goeth his way, and straightway forgetteth what manner of man he was. But whoso looketh into the perfect law of liberty (the engrafted word, begotten, first fruit of HIS creatures) , and continueth therein, he being not a forgetful hearer, but a doer of the work (that is now part of him), this man shall be blessed in his deed.
(Jas 1:23-25 KJV)
We went from obeying to being. Behold all things are new and of God. By HIS stripes we have been healed. The Commandments are no longer thou shalt not. Now through Christ, through the Gospel they are thou will not. For it is HE that works in us both to will do HIS good pleasure. Not an outward observance but an inward adherance, following the change that HE has imparted to us through Christ.
So when He speaks of the Perfect Law of Liberty in chapter two verse twelve it must be understood in context to what is shared in chapter one