Learning Language Using a Pattern Recognition Approach