| Input | Domain text; |
| Output | Domain word set dw[]; |
| Step1 | Initializations:spaces number ns; MI2,threshold; compound word cw[]; |
| Step2 | Get MIi,threshold = MI2,threshold; |
| Step3 | Calculate MI3,threshold and MI4,threshold with formula (7); |
|
| For (int i = 1; I < n; i++) |
| Step4 | Get cw set [n]; |
| Step5 | Calculate nsi; |
| Step6 | Calculate MIi with formula (3~5); |
| Step7 | If (MIi > MIi,threshold) |
|
| {dw[] = cwi;} |
|
| End |