Abarim Publications' online Biblical Greek Dictionary
The important noun δικη (dike) initially meant manner or custom and came to denote established protocol and finally became a legal term covering that what is just or right, and the penal (just) consequence of violating a rule.
In the Bible this noun occurs only 4 times; see full concordance. Once it's used the sense of just consequence (Acts 25:15, 2 Thessalonians 1:9 and Jude 1:7) and once as the more general concept of justice (Acts 28:4), although this occurrence may also be an appellation of the goddess Dike (= Justice; see the link below).
It needs to be remembered, however, that the concept of justice today differs from that of Biblical times. In our times, justice refers to the application of previously established laws, and it doesn't matter whether these laws are "fair" or not. Laws are drawn out of a hat by the Supreme Court, which is mostly concerned with maintaining the status quo of the ruling elite (which, conveniently, appoints the Supreme Court). The local courts where we ordinary slobs end up don't look at what is fair or ethically virtuous but merely whether the accused has actually violated the rule for which he or she is tried. That is why in our time, one is "guilty" when one has been found in breach of any previously established law, not when one has actually done something wrong.
In the old world, people still had a sense of absolute justice. And that absolute justice was considered either divine (by pagan systems) or integrated in created nature (as the Hebrews figured): the software upon which humanity was designed to operate. A wholly just society was expected to run without a hitch: individuals would be wholly free to follow their own inclinations, wholly voluntarily subjecting themselves to the rules everybody agreed on (Jeremiah 31:33, Romans 2:15).
An example of this kind of software is language. Nobody has to be forced into learning the words we all agree on because voluntarily following the rules of language allows people to be much more efficient and thus happier. Ultimately, when everybody understands what justice is, humanity will form a "city" like bees form a beehive. That city is called the City of God (Psalm 46:4, 87:3) or the New Jerusalem (Revelation 3:12, 21:2).
A violation of a just (that is: divine or natural) rule would bring about unhealthy people and an unstable society, simply by natural consequence. A human court was established to prevent dire consequences by punishing evildoers before nature could. And that's initially where the human justice system came from. But the Lord's final judgment, as it is so generously called, is a natural consequence of the way one leads one's life, not some kind of court room with a lot of biased people explaining things. Just like you get sick when you don't eat your vitamins, so you'll go to eternal destruction when you don't embrace the Lord of Life (2 Thessalonians 1:9).
The Biblical idea of being just and righteous should be understood along those same lines: not as being compliant to some abstract legal system but to the natural laws upon which mankind was designed to operate, and upon which mankind must learn to operate. Being righteous has to do with rightness: with being correct in a very scientific way: if you are right, then it will work; if you are wrong, then it won't work (Deuteronomy 18:22, 1 Kings 18:24). God's final judgment may come as a shocker to the unjust and ignorant (Hosea 4:6) but the righteous know perfectly well what's coming and don't fear it a bit.
The list of derivations of this noun is understandably colossal:
- The adjective δικαιος (dikaios), meaning right, righteous, just. This word is often used as a plural substantive meaning "the just" or "the righteous" (Matthew 5:45, Luke 5:32). This adjective is used 81 times see full concordance and also shows up in the following compounds:
- Together with the noun κρισις (krisis), meaning judgment in the sense of discernment or opinion, our adjective forms the noun δικαιοκρισια (dikaiokrisia), meaning just discernment (Romans 2:5 only).
- The ubiquitous noun δικαιοσυνη (dikaiosune), meaning justice, righteousness. This noun is used 93 times; see full concordance
- The evenly verb δικαιοω (dikaioo), meaning to justify in the sense of bringing someone to righteousness (Matthew 12:37, Luke 12:14, Acts 7:27) or to acknowledge the righteousness of someone (Luke 7:29). This verb is used 39 times, see full concordance, and from it in turn come:
- The noun δικαιωμα (dikaioma), meaning righteous(ness) as a result of the process described by the verb δικαιοω (dikaioo), or a means to get there. This noun occurs 10 times see full concordance.
- The noun δικαιωσις (dikaiosis), denoting the declaration of righteousness as a result of the verb δικαιοω (dikaioo) (Romans 4:25 and 5:18 only).
- The adverb δικαιως (dikaios), meaning just or justly (1 Peter 2:23), honestly (1 Thessalonians 2:10), proper (1 Corinthians 15:34). This adverb is used 5 times; see full concordance.
- The (unused) verb δικαζω (dikazo), meaning to give judgment. This unused verb yields the following derivations that do occur in the New Testament:
- The noun δικαστης (dikastes), meaning a judge but not the one which dispenses a final judgment, rather one who partakes in the process of getting there; an arbiter (Luke 12:14, Acts 7:27 and 7:35 only).
- In combination with of the common preposition κατα (kata), meaning down from, down upon, down in, this unused verb forms the verb καταδικαζω (katadikazo), meaning to give judgment against a person or to recognize evidence against a person; to condemn someone. This verb is used 5 times; see full concordance.
- With the common prefix of negation α (a) the noun αδικος (adikos), meaning unjust or unrighteous. This noun is used 12 times, see full concordance, and from it come the following words:
- The verb αδικεω (adikeo), meaning to act unjustly or do wrong. This verb is used 27 times, see full concordance, and often in the sense of to violate or harm (Matthew 20:13, Luke 10:19, Acts 25:11).
- The noun αδικια (adikia), meaning injustice. This noun is used 26 times; see full concordance.
- The adverb αδικως (adikos), meaning unjustly or wrongly (1 Peter 2:19 only).
- With the common preposition αντι (anti), meaning over or against the noun αντιδικος (antidikos), meaning an adversary or opponent in a lawsuit (Matthew 5:25). This legal term occurs 5 times, see full concordance, and is most strikingly applied to satan in Luke 12:58.
- With the common preposition εκ (ek), meaning out the noun εκδικος (ekdikos), literally and originally meaning outlaw but later applied to an executer of law, an avenger or punisher (Romans 13:4 and 1 Thessalonians 4:6 only). From this noun derives:
- With the common preposition εν (en), meaning in, on, at, by the adjective ενδικος (endikos), meaning fair or just (Romans 3:8 and Hebrews 2:2 only).
- With the common preposition υπο (hupo), meaning under, beneath or through the adjective υποδικος (hupodikos), meaning under justice; either obligated, condemned or law-abiding (Romans 3:19 only).