Text processor for legal documents