According to the rules of Korean orthography(한글맞춤법)
Article 15, stem and suffix of the predicate(verb or adjective) should be written separately.
제15항 용언의 어간과 어미는 구별하여 적는다.
ex)
in 먹다, 먹 is stem and 다 is suffix
먹다
먹고
먹어
먹으니
in 좋다, 좋 is stem and 다 is suffix
in 좋아, 좋 is stem and 아 is suffix
좋다
좋고
좋아
좋으니