Learning sentence construction