1. A method for an electronic device, the method comprising: receiving an input of a first word; recognizing a voice input and converting the voice input into a text including a second word; correcting the text by replacing the second word with the first word; and outputting the corrected text.