Analysis of visual and written texts