The basil does not repel horn worms. Dill will attract horn worms Plant dill away from your tomatoes.
This is what my paper tells me,
"Improves growth and health of cabbage. DO NOT PLANT NEAR...Carrots, Caraway, Lavender, or Tomatoes.
Best friend for lettuce. The flower heads of dill are one of the best nectar sources for beneficial insects in the garden attracting hoverflies, predatory wasps, and many more. Repels aphids, and spider mites to some degree.
Also may repel the dreaded squash bug! (scatter some good size dill leaves on plants that are subject to squash bugs, like squash plants.)
Dill goes well with lettuce, onions, cabbage, sweet corn, and cucumbers. Dill does attract the tomato hornworn so it would be wise to plant it some where away from your tomato plants.
Do plant dill in an appropriate place for the swallowtail butterfly caterpillars to feed on. Even their caterpillars are beautiful".
That's what my pages tells me. I have a lot of information in them and it's great!
Hope this helps you.