Beemer Claude Fable 5 commited on
Commit
4e4830c
·
1 Parent(s): 5247238

synonyms: bridge "no right to appeal" to IRPA s. 64's statutory vocabulary

Browse files

Users ask when there is "no right to appeal a removal order", but s. 64 never
says "removal order" or "right" -- its words are "no appeal may be made ...
inadmissible ... serious criminality", and the section ranked below the
candidate pool entirely. Eval: converts the s.64 miss (absent -> top 5) with
every other metric flat or up -- 159-Q now 0.81/0.94/0.98/0.99/0.88, 3 misses
(from 0.79/0.93/0.97/0.99/0.87 and 5 at the session start).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. canlex/synonyms.py +6 -0
canlex/synonyms.py CHANGED
@@ -28,6 +28,12 @@ _SYNONYMS = [
28
  (r"irb", "immigration and refugee board"),
29
  (r"trp", "temporary resident permit"),
30
  (r"deportation", "removal order"),
 
 
 
 
 
 
31
  (r"misrep", "misrepresentation"),
32
  (r"ircc", "immigration refugees and citizenship canada"),
33
  # Border and customs
 
28
  (r"irb", "immigration and refugee board"),
29
  (r"trp", "temporary resident permit"),
30
  (r"deportation", "removal order"),
31
+ # "No right to appeal (a removal order)" is how users ask about IRPA
32
+ # s. 64, but the section itself never says "removal order" or "right" --
33
+ # its vocabulary is "no appeal may be made ... inadmissible on grounds
34
+ # of ... serious criminality". Bridge the gap.
35
+ (r"no (?:right (?:to|of) )?appeal",
36
+ "no appeal may be made inadmissibility serious criminality"),
37
  (r"misrep", "misrepresentation"),
38
  (r"ircc", "immigration refugees and citizenship canada"),
39
  # Border and customs