1 | static int ai_splitTwoNounPhrasesByCase(L<S> tok1) { |
2 | ret ai_splitTwoNounPhrasesByCaseC(codeTokens(tok1))*2; |
3 | } |
4 | |
5 | // tok = code tokens |
6 | static int ai_splitTwoNounPhrasesByCaseC(L<S> tok) { |
7 | L<Bool> l = map(f startsWithUpperCase, tok); |
8 | ret indexOfFirstChange(l); |
9 | } |
Began life as a copy of #1011076
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: | #1012578 |
Snippet name: | ai_splitTwoNounPhrasesByCase |
Eternal ID of this version: | #1012578/1 |
Text MD5: | 4e01db98f6aefb040b46b9291057bb04 |
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 14:07:45 |
Source code size: | 272 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 356 / 375 |
Referenced in: | [show references] |