An electronic device comprising: a display; and at least one processor configured to: in response to at least one letter being input, identify at least one input behavior for the input of the at least one letter, obtain an inputted word including the at least one letter, determine whether a predetermined delimiter is input after the inputted word, if the predetermined delimiter is input, determine whether the input behavior for the at least one letter satisfies a predetermined condition: if the at least one input behavior is identified as a first touch input not satisfying the predetermined condition, enable an automatic word recommendation function, and control the display to display a first word of at least one similar word recommended by the automatic word recommendation function, wherein the at least one similar word is similar to the inputted word, and the first word is displayed by replacing the inputted word with the first word, and if the at least one input behavior is identified as a second touch input satisfying the predetermined condition, disable the automatic word recommendation function, and control the display to display the inputted word without changing the inputted word. a display; and at least one processor configured to: in response to at least one letter being input, identify at least one input behavior for the input of the at least one letter, obtain an inputted word including the at least one letter, determine whether a predetermined delimiter is input after the inputted word, if the predetermined delimiter is input, determine whether the input behavior for the at least one letter satisfies a predetermined condition: if the at least one input behavior is identified as a first touch input not satisfying the predetermined condition, enable an automatic word recommendation function, and control the display to display a first word of at least one similar word recommended by the automatic word recommendation function, wherein the at least one similar word is similar to the inputted word, and the first word is displayed by replacing the inputted word with the first word, and if the at least one input behavior is identified as a second touch input satisfying the predetermined condition, disable the automatic word recommendation function, and control the display to display the inputted word without changing the inputted word. in response to at least one letter being input, identify at least one input behavior for the input of the at least one letter, obtain an inputted word including the at least one letter, determine whether a predetermined delimiter is input after the inputted word, if the predetermined delimiter is input, determine whether the input behavior for the at least one letter satisfies a predetermined condition: if the at least one input behavior is identified as a first touch input not satisfying the predetermined condition, enable an automatic word recommendation function, and control the display to display a first word of at least one similar word recommended by the automatic word recommendation function, wherein the at least one similar word is similar to the inputted word, and the first word is displayed by replacing the inputted word with the first word, and if the at least one input behavior is identified as a second touch input satisfying the predetermined condition, disable the automatic word recommendation function, and control the display to display the inputted word without changing the inputted word. if the at least one input behavior is identified as a first touch input not satisfying the predetermined condition, enable an automatic word recommendation function, and control the display to display a first word of at least one similar word recommended by the automatic word recommendation function, wherein the at least one similar word is similar to the inputted word, and the first word is displayed by replacing the inputted word with the first word, and if the at least one input behavior is identified as a second touch input satisfying the predetermined condition, disable the automatic word recommendation function, and control the display to display the inputted word without changing the inputted word.