Text this: A Laplace decomposition algorithm applied to a class of nonlinear differential equations