Complex systems approach to natural language