Ratio and invention : a study of medieval lyric and narrative