The word "word" here is a metonym for a commandment. Possible meanings are 1) "you can state the whole law in just one commandment, which is this" or 2) "by obeying one commandment, you obey all the commandments, and that one commandment is this." (See: [[rc://en/ta/man/translate/figs-metonymy]])