The electrified adds "electric" damage to the sword, though this is in fact energy damage.
The recipe for this weapon mod varies depending on the weapon for which it is made:
Crafted at a weapons workbench.
This article is too short to provide more than rudimentary information about the subject. You can help Nukapedia by expanding it.