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.