This verb was misunderstood to be "to meditate" in late Jewish tradition (hence the JBA usage and incorrect definitions in even recent dictionaries), but the basic meaning is clearly to have disturbing and/or moving thoughts, especially of a sexual nature.