Text this: Modular linear optical circuits