Algorithm 1.
Word shape Encoding ().
| 1 | Input: the -th word in sentences ( |
|---|---|
| 2 | Output: the -th word shape in sentences () |
| 3 | Initialization: array of word shape in -th word () |
| 4 | fortodo {} |
| 5 | ifthen=“d” |
| 6 | else ifis not alphanumericsthen= |
| 7 | else ifis uppercasethen=“X” |
| 8 | else ifis lowercasethen=“x” |
| 9 | end if |
| 12 | end for |