static L<PairS> gazelle_ruleAdvise_relatedPhrases(TextCommentsID rule, O... _) { PairS r = splitAtDoubleArrow_pair(rule.text); if (r == null) null; L<PairS> pairs = listsToPairs(map tok_splitAtCommaOrDoubleArrow(mL("Gazelle | Related Phrases"))); new L<PairS> out; for (PairS p : pairs) { if (containsWithWordBoundary(r.a, p.a) && containsWithWordBoundary(r.b, p.b)) out.add(p); if (containsWithWordBoundary(r.b, p.a) && containsWithWordBoundary(r.a, p.b)) out.add(reversedPair(p)); } ret out; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022526 | 
| Snippet name: | gazelle_ruleAdvise_relatedPhrases - finds related phrases between in and out | 
| Eternal ID of this version: | #1022526/6 | 
| Text MD5: | 6c15767cd9380ff1f75e38cda170895c | 
| Author: | stefan | 
| Category: | javax / gazelle | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2019-03-20 11:31:40 | 
| Source code size: | 549 bytes / 15 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 509 / 539 | 
| Version history: | 5 change(s) | 
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1022528 - gazelle_suggestRuleComments_relatedPhrases - finds related phrases between in and out |