1 | static Set<S> ai_expandCluster_articles(Set<S> cluster) { |
2 | for (S s : cloneList(cluster)) |
3 | if (swicOneOf(s, "a ", "an ", "the ")) |
4 | cluster.add(dropFirstWord(s)); |
5 | else |
6 | addAll(cluster, aOrAn(s), "the " + s); |
7 | ret cluster; |
8 | } |
Began life as a copy of #1013463
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013466 |
Snippet name: | ai_expandCluster_articles |
Eternal ID of this version: | #1013466/1 |
Text MD5: | f32e0d263db4425633e9477d41b230a1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-07 13:31:37 |
Source code size: | 248 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 427 / 434 |
Referenced in: | [show references] |