Matching texts and text types