Text this: Smart nanocomposites