Text this: Dynamics of scalar fields from a generalized form of Lagrangian