private void say(Command command) {
        if (!command.hasSecondWord()) {
            System.out.println("Say what?\n");
            return;
        }

        String phrase = command.getSecondWord();
        
        // check who's in a nearby room.
        Character nearbyCharacter = checkWhoIsNear();
        if (nearbyCharacter == null) {
            System.out.println("This place seems devoid of the slightest spirit. Though it is of a mind haunting nature, one must remain sane and not attempt conversation with the void.\n");
            return;
        }
        
        // check if the phrase is understood by the character.
        TreeSet<String> all = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
        all = dictionary.getAll();
        if (!all.contains(phrase)) {
            System.out.println(nearbyCharacter.getName() + ": " + nearbyCharacter.getResponse("pardon") + "\n");
            return;
        }
        
        // let the character respond.
        TreeSet<String> salutations = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
        salutations = dictionary.getSalutations();
        if (salutations.contains(phrase)) {
            System.out.println(nearbyCharacter.getName() + ": " + nearbyCharacter.getResponse("salutations") + "\n");
        }
    }