What are the enchantments for a sword
Bane of Arthropods, sometimes referred to as BoA, is a common enchantment for swords. Bane of Arthropods affects all enemies classified by science to have an exoskeleton. In-game, it affects Spiders, Cave Spiders, Silverfish, and Endermites.
Enchanting a Book will create an Enchanted Book with a random enchantment stored in it. Books can absorb any enchantment that the Enchantment Table can bestow, but the book itself will not be able to use the enchantment (ie: Sharpness, Knockback).