An introduction to text processing