nowadays, motor–generators have largely been replaced by semiconductor devices. examples include rectifiers for converting alternating current (ac) to direct current (dc) and inverters for converting dc to ac.