1 | static S ai_nlVary(S s) { |
2 | LL<S> tok = ai_nlClassify1(s); // last element in each place is quoted original |
3 | for (int i = 1; i < l(tok); i += 2) { |
4 | L<S> l = tok.get(i); |
5 | S word = ai_varyClassification(l); |
6 | if (word != null) |
7 | tok.set(i, ll(quoteUnlessQuoted(word))); |
8 | } |
9 | ret join(map(func(L<S> set) { unquote(last(set)) }, tok)); |
10 | } |
Began life as a copy of #1012601
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: | #1012610 |
Snippet name: | ai_nlVary |
Eternal ID of this version: | #1012610/7 |
Text MD5: | 7baae84789aeadaea8f5b39f4a0ceebd |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-07 23:59:26 |
Source code size: | 356 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 487 |
Version history: | 6 change(s) |
Referenced in: | [show references] |