Text this: Modeling of photonic devices