Text this: A novel intelligent photonic design method enabled by metamaterials and k-nearest neighbor