If ye fulfil the royal law according to the scripture, Thou shalt love thy neighbour as thyself, ye do well:
What is the "royal law" referring to? A regal law or the law of the king. Some suggest "thou shalt love thy neighbor as thyself" (Leviticus 19:18) as the law spoken of here. From the context this is part of the royal law at the very least if not all of it.
The construction seems to me to show that if we obey the law, then the love will be the outworking of our fulfilling, thus indicating that the royal law is actually something else. The fulfilling is a present tense and the loving is a future tense, again indicating that the loving is an outworking of the fulfilling.
Verse nine seems to me to indicate the law of the Old Testament, or some law that is set and that is to be obeyed, and that will convict us if we don't. At the very least this is a set of commands which cause us to sin, if unfulfilled, as well as have the capability of convicting us of our transgressions.
The Old Testament law certainly fits into this set of requirements. We will see more about this law in the application section.
How do you love that neighbor that sticks a running hose into your open car window and fills your car with water? How do you love that neighbor that knowingly blocks your car in so you can't move it? How do you love that neighbor that knowingly borrows things and does not return them?
Some might suggest that you love them very grudgingly, but I doubt that is what God meant when He moved James to pen the words.
We should love them as if they have done nothing, especially if we ever want to witness to them about the Lord that we serve.