Text this: Structural and chemical analysis of materials