Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1028938 // ai_remergeWordSuffixes

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2698L/17K).

sS ai_remergeWordSuffixes(Set<S> suffixes, S input) {
  ret joinAdjacentTokensIf(input, (a, b) -> contains(suffixes, b) && isWordish(a));
}

Author comment

Began life as a copy of #1028932

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028938
Snippet name: ai_remergeWordSuffixes
Eternal ID of this version: #1028938/1
Text MD5: 151211d3a1df97ed08d7203a054e33e2
Transpilation MD5: a133298c04e963c8669bcf93c6dd68b1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 13:00:41
Source code size: 141 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 278
Referenced in: [show references]