Text this: Development of an intelligent system for power quality planning and management