}
for (Command command : CommandPersistence.getUserCommands()) {
int similarity = 0;
for (String inputTag : Arrays.asList(input.split(" "))) {
for (String commandTag : command.getTags()) {
DamerauLevenshtein algorithm = new DamerauLevenshtein(inputTag.trim().toLowerCase(), commandTag.trim().toLowerCase());
int distance = algorithm.getSimilarity();
//the percent of similarity in in this tag related to input tag
double percent = ((double) (distance * 100)) / ((double) inputTag.length());
if (distance == 0) {
similarity += 3;