Text this: Effective electromagnetic properties of linear and nonlinear composites