blib/lib/Decaptcha/TextCaptcha.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 174 | 183 | 95.0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
50 | 1 | 1 | 114 | $lq =~ /^(?:the word )?"(.*?)" has how many letters\?$/ or $lq =~ /^how many letters in (?:the word )?"(.*?)"\?$/ |
55 | 2 | 1 | 111 | $q =~ /^The word in capitals from (.*?) is\?$/ or $q =~ /^Which word is all in capitals: (.*?)\?$/ |
3 | 1 | 110 | $q =~ /^The word in capitals from (.*?) is\?$/ or $q =~ /^Which word is all in capitals: (.*?)\?$/ or $q =~ /^Which of (.*?) is in capitals\?$/ | |
62 | 2 | 1 | 107 | $lq =~ /^which word starts with "(? |
3 | 2 | 105 | $lq =~ /^which word starts with "(? |
|
3 | 1 | 104 | $lq =~ /^which word starts with "(? |
|
69 | 2 | 1 | 101 | $lq =~ /^which word contains "(? |
3 | 1 | 100 | $lq =~ /^which word contains "(? |
|
2 | 1 | 99 | $lq =~ /^which word contains "(? |
|
76 | 1 | 1 | 97 | $lq =~ /^the word "(.).*?" starts with which letter\?$/ or $lq =~ /^the letter at the beginning of the word "(.).*?" is\?$/ |
2 | 1 | 96 | $lq =~ /^the word "(.).*?" starts with which letter\?$/ or $lq =~ /^the letter at the beginning of the word "(.).*?" is\?$/ or $lq =~ /^the word "(.).*?" has which letter at the start\?$/ | |
2 | 2 | 94 | $lq =~ /^the word "(.).*?" starts with which letter\?$/ or $lq =~ /^the letter at the beginning of the word "(.).*?" is\?$/ or $lq =~ /^the word "(.).*?" has which letter at the start\?$/ or $lq =~ /^the (?:last|final) letter of word ".*?(.)" is\?$/ | |
3 | 1 | 93 | $lq =~ /^the word "(.).*?" starts with which letter\?$/ or $lq =~ /^the letter at the beginning of the word "(.).*?" is\?$/ or $lq =~ /^the word "(.).*?" has which letter at the start\?$/ or $lq =~ /^the (?:last|final) letter of word ".*?(.)" is\?$/ or $lq =~ /^the word ".*?(.)" has which letter at the end\?$/ | |
81 | 1 | 2 | 90 | $lq =~ /^the (? \d+)\S+ letter in (?:the word )?"(? \d+)\S+ position\?$/ |
89 | 1 | 2 | 87 | $lq =~ /^tomorrow is (\w+)\. if this is true, what day is today\?$/ or $lq =~ /^if tomorrow is (\w+), what day is today\?$/ |
3 | 1 | 86 | $lq =~ /^tomorrow is (\w+)\. if this is true, what day is today\?$/ or $lq =~ /^if tomorrow is (\w+), what day is today\?$/ or $lq =~ /^what day is today, if tomorrow is (\w+)\?$/ | |
95 | 1 | 2 | 83 | $lq =~ /^yesterday was (\w+)\. if this is true, what day is today\?$/ or $lq =~ /^if yesterday was (\w+), what day is today\?$/ |
3 | 1 | 82 | $lq =~ /^yesterday was (\w+)\. if this is true, what day is today\?$/ or $lq =~ /^if yesterday was (\w+), what day is today\?$/ or $lq =~ /^what day is today, if yesterday was (\w+)\?$/ | |
101 | 2 | 1 | 79 | $lq =~ /^which of these is a day of the week: (.*?)\?$/ or $lq =~ /^which of (.*?) is a day of the week\?$/ |
3 | 1 | 78 | $lq =~ /^which of these is a day of the week: (.*?)\?$/ or $lq =~ /^which of (.*?) is a day of the week\?$/ or $lq =~ /^which of (.*?) is the name of a day\?$/ | |
2 | 1 | 77 | $lq =~ /^which of these is a day of the week: (.*?)\?$/ or $lq =~ /^which of (.*?) is a day of the week\?$/ or $lq =~ /^which of (.*?) is the name of a day\?$/ or $lq =~ /^the day of the week in (.*?) is\?$/ | |
2 | 1 | 76 | $lq =~ /^which of these is a day of the week: (.*?)\?$/ or $lq =~ /^which of (.*?) is a day of the week\?$/ or $lq =~ /^which of (.*?) is the name of a day\?$/ or $lq =~ /^the day of the week in (.*?) is\?$/ or $lq =~ /^(.*?): the day of the week is\?$/ | |
114 | 1 | 1 | 70 | $lq =~ /^(\w+)'s? name is\?$/ or $lq =~ /^what is (\w+)'s? name\?$/ |
2 | 1 | 69 | $lq =~ /^(\w+)'s? name is\?$/ or $lq =~ /^what is (\w+)'s? name\?$/ or $lq =~ /^the name of (\w+) is\?$/ | |
2 | 1 | 68 | $lq =~ /^(\w+)'s? name is\?$/ or $lq =~ /^what is (\w+)'s? name\?$/ or $lq =~ /^the name of (\w+) is\?$/ or $lq =~ /^if a person is called (\w+), what is their name\?$/ | |
118 | 2 | 2 | 64 | $q =~ /^The person's firstname in (.*?) is\?$/ or $q =~ /^Which in this list is the name of a person: (.*?)\?$/ |
4 | 1 | 63 | $q =~ /^The person's firstname in (.*?) is\?$/ or $q =~ /^Which in this list is the name of a person: (.*?)\?$/ or $q =~ /^(.*?): the person's name is\?$/ | |
3 | 0 | 63 | $q =~ /^The person's firstname in (.*?) is\?$/ or $q =~ /^Which in this list is the name of a person: (.*?)\?$/ or $q =~ /^(.*?): the person's name is\?$/ or $q =~ /^Which of (.*?) is the name of a person\?$/ | |
1 | 1 | 62 | $q =~ /^The person's firstname in (.*?) is\?$/ or $q =~ /^Which in this list is the name of a person: (.*?)\?$/ or $q =~ /^(.*?): the person's name is\?$/ or $q =~ /^Which of (.*?) is the name of a person\?$/ or $q =~ /^Which of (.*?) is a person's name\?$/ | |
129 | 1 | 1 | 60 | $lq =~ /^the colour of a (\w+) \S+ is\?$/ or $lq =~ /^the (\w+) \S+ is what colour\?$/ |
2 | 1 | 59 | $lq =~ /^the colour of a (\w+) \S+ is\?$/ or $lq =~ /^the (\w+) \S+ is what colour\?$/ or $lq =~ /^if the \S+ is (\w+), what colour is it\?$/ | |
132 | 2 | 1 | 56 | $lq =~ /^how many colours in the list (.*?)\?$/ or $lq =~ /^the list (.*?) contains how many colours\?$/ |
3 | 1 | 55 | $lq =~ /^how many colours in the list (.*?)\?$/ or $lq =~ /^the list (.*?) contains how many colours\?$/ or $lq =~ /^(.*?): how many colours in the list\?$/ | |
138 | 2 | 1 | 52 | $lq =~ /^which of these is a colour: (.*?)\?$/ or $lq =~ /^which of (.*?) is a colour\?$/ |
3 | 1 | 51 | $lq =~ /^which of these is a colour: (.*?)\?$/ or $lq =~ /^which of (.*?) is a colour\?$/ or $lq =~ /^(.*?): the colour is\?$/ | |
2 | 1 | 50 | $lq =~ /^which of these is a colour: (.*?)\?$/ or $lq =~ /^which of (.*?) is a colour\?$/ or $lq =~ /^(.*?): the colour is\?$/ or $lq =~ /^the colour in the list (.*?) is\?$/ | |
145 | 3 | 0 | 47 | $lq =~ /^what is the (? \d+)\S+ colour in the list (? \d+)\S+ colour in (? |
3 | 1 | 46 | $lq =~ /^what is the (? \d+)\S+ colour in the list (? \d+)\S+ colour in (? \d+)\S+ colour is\?$/ |
|
153 | 2 | 1 | 43 | $lq =~ /^the number of body parts in the list (.*?) is\?$/ or $lq =~ /^the list (.*?) contains how many body parts\?$/ |
3 | 1 | 42 | $lq =~ /^the number of body parts in the list (.*?) is\?$/ or $lq =~ /^the list (.*?) contains how many body parts\?$/ or $lq =~ /^(.*?): how many body parts in the list\?$/ | |
159 | 2 | 1 | 39 | $lq =~ /^the body part in (.*?) is\?$/ or $lq =~ /^which of these is a body part: (.*?)\?$/ |
3 | 1 | 38 | $lq =~ /^the body part in (.*?) is\?$/ or $lq =~ /^which of these is a body part: (.*?)\?$/ or $lq =~ /^which of (.*?) is a body part\?$/ | |
2 | 1 | 37 | $lq =~ /^the body part in (.*?) is\?$/ or $lq =~ /^which of these is a body part: (.*?)\?$/ or $lq =~ /^which of (.*?) is a body part\?$/ or $lq =~ /^which of (.*?) is part of a person\?$/ | |
2 | 1 | 36 | $lq =~ /^the body part in (.*?) is\?$/ or $lq =~ /^which of these is a body part: (.*?)\?$/ or $lq =~ /^which of (.*?) is a body part\?$/ or $lq =~ /^which of (.*?) is part of a person\?$/ or $lq =~ /^(.*?): the body part is\?$/ | |
181 | 1 | 0 | 23 | $lq =~ /^enter the number (.*?) in digits:$/ or $lq =~ /^what is (.*?) as (?:digits|a number)\?$/ |
186 | 1 | 0 | 22 | $lq =~ /^which digit is (? \d+)\S+ in the number (? \d+)\S+ digit in (? |
1 | 3 | 19 | $lq =~ /^which digit is (? \d+)\S+ in the number (? \d+)\S+ digit in (? \d+)\S+ digit\?$/ |
|
192 | 2 | 1 | 16 | $lq =~ /^the (? \d+)\S+ number from (? \d+)\S+ number in the list (? |
3 | 1 | 15 | $lq =~ /^the (? \d+)\S+ number from (? \d+)\S+ number in the list (? \d+)\S+ in the series (? |
|
2 | 1 | 14 | $lq =~ /^the (? \d+)\S+ number from (? \d+)\S+ number in the list (? \d+)\S+ in the series (? \d+)\S+ number is\?$/ |
|
201 | 1 | 1 | 12 | $lq =~ /^enter the $biggest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $biggest_re\?$/ |
2 | 1 | 11 | $lq =~ /^enter the $biggest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $biggest_re\?$/ or $lq =~ /^which of (.*?) is the $biggest_re\?$/ | |
2 | 1 | 10 | $lq =~ /^enter the $biggest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $biggest_re\?$/ or $lq =~ /^which of (.*?) is the $biggest_re\?$/ or $lq =~ /^(.*?): which of these is the $biggest_re\?$/ | |
2 | 1 | 9 | $lq =~ /^enter the $biggest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $biggest_re\?$/ or $lq =~ /^which of (.*?) is the $biggest_re\?$/ or $lq =~ /^(.*?): which of these is the $biggest_re\?$/ or $lq =~ /^(.*?): the $biggest_re is\?$/ | |
210 | 1 | 1 | 7 | $lq =~ /^enter the $smallest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $smallest_re\?$/ |
2 | 1 | 6 | $lq =~ /^enter the $smallest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $smallest_re\?$/ or $lq =~ /^which of (.*?) is the $smallest_re\?$/ | |
2 | 1 | 5 | $lq =~ /^enter the $smallest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $smallest_re\?$/ or $lq =~ /^which of (.*?) is the $smallest_re\?$/ or $lq =~ /^(.*?): which of these is the $smallest_re\?$/ | |
2 | 1 | 4 | $lq =~ /^enter the $smallest_re number of (.*?):$/ or $lq =~ /^of the numbers (.*?), which is the $smallest_re\?$/ or $lq =~ /^which of (.*?) is the $smallest_re\?$/ or $lq =~ /^(.*?): which of these is the $smallest_re\?$/ or $lq =~ /^(.*?): the $smallest_re is\?$/ | |
218 | 4 | 0 | 0 | $lq =~ /^(.*?) (?:= |equals |is what)\?$/ or $lq =~ /^what(?:'s| is) (.*?)\?$/ |
222 | 3 | 1 | 0 | s/\b(?:add|plus)\b/+/ or s/\bminus\b/-/ |
223 | 8 | 0 | 0 | words2nums $1 // $1 |