1 | static L<PairS> gazelle_ruleAdvise_relatedPhrases(TextCommentsID rule, O... _) { |
2 | PairS r = splitAtDoubleArrow_pair(rule.text); |
3 | if (r == null) null; |
4 | |
5 | L<PairS> pairs = listsToPairs(map tok_splitAtCommaOrDoubleArrow(mL("Gazelle | Related Phrases"))); |
6 | |
7 | new L<PairS> out; |
8 | for (PairS p : pairs) { |
9 | if (containsWithWordBoundary(r.a, p.a) && containsWithWordBoundary(r.b, p.b)) |
10 | out.add(p); |
11 | if (containsWithWordBoundary(r.b, p.a) && containsWithWordBoundary(r.a, p.b)) |
12 | out.add(reversedPair(p)); |
13 | } |
14 | ret out; |
15 | } |
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: | 289 / 317 |
Version history: | 5 change(s) |
Referenced in: | [show references] |