1 """
2 The stats module maps statistical category identifiers from NFL.com's
3 GameCenter JSON feed to a representation of what we believe that statistical
4 category means. This mapping has been reverse engineered with a lot of help
5 from reddit users rasherdk and curien.
6
7 B{Note}: We now have a data dictionary mapping statistical category id to
8 a description from nflgsis.com. An original copy is in the root directory
9 of the nflgame repository (StatIDs.html).
10
11 If you think anything here is wrong (or can figure out some of the unknowns),
12 please let me know by filing an issue here:
13 https://github.com/BurntSushi/nflgame/issues
14
15 For each statistical category identifier, we create a dict of 6 fields
16 describing that statistical category. The fields are cat, fields, yds, value,
17 desc and long.
18
19 cat specifies which statistical category the particular stat belong in. Only
20 statistical categories in nflgame.player.categories should be used.
21
22 fields specifies the actual statistical field corresponding to the stat. This
23 will manifest itself as a property on statistical objects via the API. These
24 fields should correspond to counters; i.e., number of receptions, rushing
25 attempts, tackles, etc.
26
27 yds specifies a field that contains the yardage totals relevant to the stat.
28 If a stat does not specify yards, this field should be blank (an empty string).
29
30 value specifies how much each statistic is worth. This is 1 in every case
31 except for split sacks.
32
33 desc specifies a human readable description for the statistic. It should be
34 concise and clear. If a statistical category is unknown, then desc should
35 contain a string like 'Unknown (reason for confusion)'. Valid reasons for
36 confusion include "data is inconsistent" or "this looks like a duplicate" all
37 the way to "I have no fucking clue."
38
39 long contains a verbatim description from nflgsis.com. Some of the information
40 clearly references legacy systems, but alas, it is included as it adds to the
41 context of each statistical category.
42 """
43
44
45 -def values(category_id, yards):
46 """
47 Returns a dictionary of field names to statistical values for a
48 particular category id defined in idmap.
49 """
50 assert category_id in idmap, \
51 'Category identifier %d is not known.' % category_id
52 info = idmap[category_id]
53 try:
54 yards = int(yards)
55 except ValueError:
56 yards = 0
57
58 vals = {}
59 if info['yds']:
60 vals[info['yds']] = yards
61 for f in info['fields']:
62 vals[f] = info.get('value', 1)
63 return vals
64
65 categories = ("passing", "rushing", "receiving",
66 "fumbles", "kicking", "punting", "kickret", "puntret",
67 "defense", "penalty")
68 """
69 categories is a list of all statistical categories reported by NFL's
70 GameCenter.
71 """
72
73 idmap = {
74 2: {
75 'cat': 'punting',
76 'fields': ['punting_blk', 'punting_cnt'],
77 'yds': '',
78 'desc': 'Punt blocked (offense)',
79 'long': 'Punt was blocked. A blocked punt is a punt that is touched '
80 'behind the line of scrimmage, and is recovered, or goes '
81 'out of bounds, behind the line of scrimmage. If the '
82 'impetus of the punt takes it beyond the line of scrimmage, '
83 'it is not a blocked punt.',
84 },
85 3: {
86 'cat': 'team',
87 'fields': ['first_down', 'rushing_first_down'],
88 'yds': '',
89 'desc': '1st down (rushing)',
90 'long': 'A first down or TD occurred due to a rush.',
91 },
92 4: {
93 'cat': 'team',
94 'fields': ['first_down', 'passing_first_down'],
95 'yds': '',
96 'desc': '1st down (passing)',
97 'long': 'A first down or TD occurred due to a pass.',
98 },
99 5: {
100 'cat': 'team',
101 'fields': ['first_down', 'penalty_first_down'],
102 'yds': '',
103 'desc': '1st down (penalty)',
104 'long': 'A first down or TD occurred due to a penalty. A play can '
105 'have a first down from a pass or rush and from a penalty.',
106 },
107 6: {
108 'cat': 'team',
109 'fields': ['third_down_att', 'third_down_conv'],
110 'yds': '',
111 'desc': '3rd down attempt converted',
112 'long': '3rd down play resulted in a first down or touchdown.',
113 },
114 7: {
115 'cat': 'team',
116 'fields': ['third_down_att', 'third_down_failed'],
117 'yds': '',
118 'desc': '3rd down attempt failed',
119 'long': '3rd down play did not result in a first down or touchdown.',
120 },
121 8: {
122 'cat': 'team',
123 'fields': ['fourth_down_att', 'fourth_down_conv'],
124 'yds': '',
125 'desc': '4th down attempt converted',
126 'long': '4th down play resulted in a first down or touchdown.',
127 },
128 9: {
129 'cat': 'team',
130 'fields': ['fourth_down_att', 'fourth_down_failed'],
131 'yds': '',
132 'desc': '4th down attempt failed',
133 'long': '4th down play did not result in a first down or touchdown.',
134 },
135 10: {
136 'cat': 'rushing',
137 'fields': ['rushing_att'],
138 'yds': 'rushing_yds',
139 'desc': 'Rushing yards',
140 'long': 'Rushing yards and credit for a rushing attempt.',
141 },
142 11: {
143 'cat': 'rushing',
144 'fields': ['rushing_att', 'rushing_tds'],
145 'yds': 'rushing_yds',
146 'desc': 'Rushing yards, TD',
147 'long': 'Rushing yards and credit for a rushing attempt where the '
148 'result of the play was a touchdown.',
149 },
150 12: {
151 'cat': 'rushing',
152 'fields': [],
153 'yds': 'rushing_yds',
154 'desc': 'Rushing yards, No rush',
155 'long': 'Rushing yards with no rushing attempt. This will occur when '
156 'the initial runner laterals to a second runner, and the '
157 'second runner possesses the lateral beyond the line of '
158 'scrimmage. Both players get rushing yards, but only the '
159 'first player gets a rushing attempt.',
160 },
161 13: {
162 'cat': 'rushing',
163 'fields': ['rushing_tds'],
164 'yds': 'rushing_yds',
165 'desc': 'Rushing yards, TD, No rush',
166 'long': 'Rushing yards and no rushing attempt, where the result of '
167 'the play was a touchdown. (See id 12.)',
168 },
169 14: {
170 'cat': 'passing',
171 'fields': ['passing_att', 'passing_incmp'],
172 'yds': '',
173 'desc': 'Pass incomplete',
174 'long': 'Pass atempt, incomplete.',
175 },
176 15: {
177 'cat': 'passing',
178 'fields': ['passing_att', 'passing_cmp'],
179 'yds': 'passing_yds',
180 'desc': 'Passing yards',
181 'long': 'Passing yards and a pass attempt completed.',
182 },
183 16: {
184 'cat': 'passing',
185 'fields': ['passing_att', 'passing_cmp', 'passing_tds'],
186 'yds': 'passing_yds',
187 'desc': 'Passing yards, TD',
188 'long': 'Passing yards and a pass attempt completed that resulted in '
189 'a touchdown.',
190 },
191
192
193
194
195
196
197
198
199
200 19: {
201 'cat': 'passing',
202 'fields': ['passing_att', 'passing_incmp', 'passing_int'],
203 'yds': '',
204 'desc': 'Interception (by passer)',
205 'long': 'Pass attempt that resulted in an interception.',
206 },
207 20: {
208 'cat': 'passing',
209 'fields': ['passing_sk'],
210 'yds': 'passing_sk_yds',
211 'desc': 'Sack yards (offense)',
212 'long': 'Number of yards lost on a pass play that resulted in a sack.',
213 },
214 21: {
215 'cat': 'receiving',
216 'fields': ['receiving_rec'],
217 'yds': 'receiving_yds',
218 'desc': 'Pass reception yards',
219 'long': 'Pass reception and yards.',
220 },
221 22: {
222 'cat': 'receiving',
223 'fields': ['receiving_rec', 'receiving_tds'],
224 'yds': 'receiving_yds',
225 'desc': 'Pass reception yards, TD',
226 'long': 'Same as previous (21), except when the play results in a '
227 'touchdown.',
228 },
229 23: {
230 'cat': 'receiving',
231 'fields': [],
232 'yds': 'receiving_yds',
233 'desc': 'Pass reception yards, No reception',
234 'long': 'Pass reception yards, no pass reception. This will occur '
235 'when the pass receiver laterals to a teammate. The teammate '
236 'gets pass reception yards, but no credit for a pass '
237 'reception.',
238 },
239 24: {
240 'cat': 'receiving',
241 'fields': ['receiving_tds'],
242 'yds': 'receiving_yds',
243 'desc': 'Pass reception yards, TD, No reception',
244 'long': 'Same as previous (23), except when the play results in a '
245 'touchdown.',
246 },
247 25: {
248 'cat': 'defense',
249 'fields': ['defense_int'],
250 'yds': 'defense_int_yds',
251 'desc': 'Interception yards',
252 'long': 'Interception and return yards.',
253 },
254 26: {
255 'cat': 'defense',
256 'fields': ['defense_int', 'defense_int_tds'],
257 'yds': 'defense_int_yds',
258 'desc': 'Interception yards, TD',
259 'long': 'Same as previous (25), except when the play results in a '
260 'touchdown.',
261 },
262 27: {
263 'cat': 'defense',
264 'fields': [],
265 'yds': 'defense_int_yds',
266 'also': [],
267 'desc': 'Interception yards, No interception',
268 'long': 'Interception yards, with no credit for an interception. This '
269 'will occur when the player who intercepted the pass laterals '
270 'to a teammate. The teammate gets interception return yards, '
271 'but no credit for a pass interception.',
272 },
273 28: {
274 'cat': 'defense',
275 'fields': ['defense_int_tds'],
276 'yds': 'defense_int_yds',
277 'also': [],
278 'desc': 'Interception yards, TD, No interception',
279 'long': 'Same as previous (27), except when the play results in a '
280 'touchdown.',
281 },
282 29: {
283 'cat': 'punting',
284 'fields': ['punting_tot'],
285 'yds': 'punting_yds',
286 'desc': 'Punting yards',
287 'long': 'Punt and length of the punt. This stat is not used if '
288 'the punt results in a touchback; or the punt is received '
289 'in the endzone and run out; or the punt is blocked. This '
290 'stat is used exclusively of the PU_EZ, PU_TB and PU_BK '
291 'stats.',
292 },
293 30: {
294 'cat': 'punting',
295 'fields': ['punting_i20'],
296 'yds': '',
297 'desc': 'Punt inside 20',
298 'long': 'This stat is recorded when the punt return ended inside the '
299 'opponent\'s 20 yard line. This is not counted as a punt or '
300 'towards punting yards. This stat is used solely to calculate '
301 '"inside 20" stats. This stat is used in addition to either a '
302 'PU or PU_EZ stat.',
303 },
304 31: {
305 'cat': 'punting',
306 'fields': ['punting_tot'],
307 'yds': 'punting_yds',
308 'desc': 'Punt into endzone',
309 'long': 'SuperStat records this stat when the punt is received in '
310 'the endzone, and then run out of the endzone. If the play '
311 'ends in the endzone for a touchback, the stat is not '
312 'recorded. This stat is used exclusively of the PU, PU_TB and '
313 'PU_BK stats.',
314 },
315 32: {
316 'cat': 'punting',
317 'fields': ['punting_tot', 'punting_touchback'],
318 'yds': 'punting_yds',
319 'desc': 'Punt with touchback',
320 'long': 'Punt and length of the punt when the play results in a '
321 'touchback. This stat is used exclusively of the PU, PU_EZ '
322 'and PU_BK stats.',
323 },
324 33: {
325 'cat': 'puntret',
326 'fields': ['puntret_tot'],
327 'yds': 'puntret_yds',
328 'desc': 'Punt return yards',
329 'long': 'Punt return and yards.',
330 },
331 34: {
332 'cat': 'puntret',
333 'fields': ['puntret_tot', 'puntret_tds'],
334 'yds': 'puntret_yds',
335 'desc': 'Punt return yards, TD',
336 'long': 'Same as previous (33), except when the play results in a '
337 'touchdown.',
338 },
339 35: {
340 'cat': 'puntret',
341 'fields': [],
342 'yds': 'puntret_yds',
343 'desc': 'Punt return yards, No return',
344 'long': 'Punt return yards with no credit for a punt return. This '
345 'will occur when the player who received the punt laterals '
346 'to a teammate. The teammate gets punt return yards, but no '
347 'credit for a return.',
348 },
349 36: {
350 'cat': 'puntret',
351 'fields': ['puntret_tds'],
352 'yds': 'puntret_yds',
353 'desc': 'Punt return yards, TD, No return',
354 'long': 'Same as previous (35), except when the play results in a '
355 'touchdown.',
356 },
357 37: {
358 'cat': 'team',
359 'fields': ['puntret_oob'],
360 'yds': '',
361 'desc': 'Punt out of bounds',
362 'long': 'Punt went out of bounds, no return on the play.',
363 },
364 38: {
365 'cat': 'team',
366 'fields': ['puntret_downed'],
367 'yds': '',
368 'also': [],
369 'value': 1,
370 'desc': 'Punt downed (no return)',
371 'long': 'Punt was downed by kicking team, no return on the play. '
372 'The player column this stat will always be NULL.',
373 },
374 39: {
375 'cat': 'puntret',
376 'fields': ['puntret_fair'],
377 'yds': '',
378 'desc': 'Punt - fair catch',
379 'long': 'Punt resulted in a fair catch.',
380 },
381 40: {
382 'cat': 'team',
383 'fields': ['puntret_touchback'],
384 'yds': '',
385 'desc': 'Punt - touchback (no return)',
386 'long': 'Punt resulted in a touchback. This is the receiving team\'s '
387 'version of code 1504/28 (32) above. Both are needed for stat '
388 'calculations, especially in season cumulative analysis.',
389 },
390 41: {
391 'cat': 'kicking',
392 'fields': ['kicking_tot'],
393 'yds': 'kicking_yds',
394 'desc': 'Kickoff yards',
395 'long': 'Kickoff and length of kick.',
396 },
397 42: {
398 'cat': 'kicking',
399 'fields': ['kicking_i20'],
400 'yds': '',
401 'desc': 'Kickoff inside 20',
402 'long': 'Kickoff and length of kick, where return ended inside '
403 'opponent\'s 20 yard line. This is not counted as a kick or '
404 'towards kicking yards. This code is used solely to calculate '
405 '"inside 20" stats. used in addition to a 1701 code.',
406 },
407 43: {
408 'cat': 'kicking',
409 'fields': ['kicking_tot'],
410 'yds': 'kicking_yds',
411 'desc': 'Kickff into endzone',
412 'long': 'SuperStat records this stat when the kickoff is received '
413 'in the endzone, and then run out of the endzone. If the play '
414 'ends in the endzone for a touchback, the stat is not '
415 'recorded. Compare to "Punt into endzone."',
416 },
417 44: {
418 'cat': 'kicking',
419 'fields': ['kicking_tot', 'kicking_touchback'],
420 'yds': 'kicking_yds',
421 'desc': 'Kickoff with touchback',
422 'long': 'Kickoff resulted in a touchback.',
423 },
424 45: {
425 'cat': 'kickret',
426 'fields': ['kickret_ret'],
427 'yds': 'kickret_yds',
428 'desc': 'Kickoff return yards',
429 'long': 'Kickoff return and yards.',
430 },
431 46: {
432 'cat': 'kickret',
433 'fields': ['kickret_ret', 'kickret_tds'],
434 'yds': 'kickret_yds',
435 'desc': 'Kickoff return yards, TD',
436 'long': 'Same as previous (45), except when the play results in a '
437 'touchdown.',
438 },
439 47: {
440 'cat': 'kickret',
441 'fields': [],
442 'yds': 'kickret_yds',
443 'desc': 'Kickoff return yards, No return',
444 'long': 'Kickoff yards with no return. This will occur when the '
445 'player who is credited with the return laterals to a '
446 'teammate. The teammate gets kickoff return yards, but no '
447 'credit for a kickoff return.',
448 },
449 48: {
450 'cat': 'kickret',
451 'fields': ['kickret_tds'],
452 'yds': 'kickret_yds',
453 'desc': 'Kickoff return yards, TD, No return',
454 'long': 'Same as previous (47), except when the play results in a '
455 'touchdown.',
456 },
457 49: {
458 'cat': 'team',
459 'fields': ['kickret_oob'],
460 'yds': '',
461 'desc': 'Kickoff out of bounds',
462 'long': 'Kicked ball went out of bounds.',
463 },
464 50: {
465 'cat': 'kickret',
466 'fields': ['kickret_fair'],
467 'yds': '',
468 'desc': 'Kickoff - fair catch',
469 'long': 'Kick resulted in a fair catch (no return).',
470 },
471 51: {
472 'cat': 'team',
473 'fields': ['kickret_touchback'],
474 'yds': '',
475 'desc': 'Kickoff - touchback',
476 'long': 'Kick resulted in a touchback. A touchback implies that '
477 'there is no return.',
478 },
479 52: {
480 'cat': 'fumbles',
481 'fields': ['fumbles_tot', 'fumbles_forced'],
482 'yds': '',
483 'desc': 'Fumble - forced',
484 'long': 'Player fumbled the ball, fumble was forced by another '
485 'player.',
486 },
487 53: {
488 'cat': 'fumbles',
489 'fields': ['fumbles_tot', 'fumbles_notforced'],
490 'yds': '',
491 'desc': 'Fumble - not forced',
492 'long': 'Player fumbled the ball, fumble was not forced by another '
493 'player.',
494 },
495 54: {
496 'cat': 'fumbles',
497 'fields': ['fumbles_tot', 'fumbles_oob'],
498 'yds': '',
499 'desc': 'Fumble - out of bounds',
500 'long': 'Player fumbled the ball, and the ball went out of bounds.',
501 },
502 55: {
503 'cat': 'fumbles',
504 'fields': ['fumbles_rec'],
505 'yds': 'fumbles_rec_yds',
506 'desc': 'Own recovery yards',
507 'long': 'Yardage gained/lost by a player after he recovered a fumble '
508 'by his own team.',
509 },
510 56: {
511 'cat': 'fumbles',
512 'fields': ['fumbles_rec', 'fumbles_rec_tds'],
513 'yds': 'fumbles_rec_yds',
514 'desc': 'Own recovery yards, TD',
515 'long': 'Same as previous (55), except when the play results in a '
516 'touchdown.',
517 },
518 57: {
519 'cat': 'fumbles',
520 'fields': [],
521 'yds': 'fumbles_rec_yds',
522 'desc': 'Own recovery yards, No recovery',
523 'long': 'If a player recovered a fumble by his own team, then '
524 'lateraled to a teammate, the yardage gained/lost by teammate '
525 'would be recorded with this stat.',
526 },
527 58: {
528 'cat': 'fumbles',
529 'fields': ['fumbles_rec_tds'],
530 'yds': 'fumbles_rec_yds',
531 'desc': 'Own recovery yards, TD, No recovery',
532 'long': 'Same as previous (57), except when the play results in a '
533 'touchdown.',
534 },
535 59: {
536 'cat': 'defense',
537 'fields': ['defense_frec'],
538 'yds': 'defense_frec_yds',
539 'desc': 'Opponent recovery yards',
540 'long': 'Yardage gained/lost by a player after he recovered a fumble '
541 'by the opposing team.',
542 },
543 60: {
544 'cat': 'defense',
545 'fields': ['defense_frec', 'defense_frec_tds'],
546 'yds': 'defense_frec_yds',
547 'desc': 'Opponent recovery yards, TD',
548 'long': 'Same as previous (59), except when the play results in a '
549 'touchdown.',
550 },
551 61: {
552 'cat': 'defense',
553 'fields': [],
554 'yds': 'defense_frec_yds',
555 'desc': 'Opponent recovery yards, No recovery',
556 'long': 'If a player recovered a fumble by the opposing team, then '
557 'lateraled to a teammate, the yardage gained/lost by the '
558 'teammate would be recorded with this stat.',
559 },
560 62: {
561 'cat': 'defense',
562 'fields': ['defense_frec_tds'],
563 'yds': 'defense_frec_yds',
564 'desc': 'Opponent recovery yards, TD, No recovery',
565 'long': 'Same as previous, except when the play results in a '
566 'touchdown.',
567 },
568
569
570
571
572
573
574
575
576
577
578
579
580 68: {
581 'cat': 'team',
582 'fields': ['timeout'],
583 'yds': '',
584 'desc': 'Timeout',
585 'long': 'Team took a time out.',
586 },
587 69: {
588 'cat': 'kicking',
589 'fields': ['kicking_fga', 'kicking_fgmissed'],
590 'yds': 'kicking_fgmissed_yds',
591 'desc': 'Field goal missed yards',
592 'long': 'The length of a missed field goal.',
593 },
594 70: {
595 'cat': 'kicking',
596 'fields': ['kicking_fga', 'kicking_fgm'],
597 'yds': 'kicking_fgm_yds',
598 'desc': 'Field goal yards',
599 'long': 'The length of a successful field goal.',
600 },
601 71: {
602 'cat': 'kicking',
603 'fields': ['kicking_fga', 'kicking_fgb'],
604 'yds': 'kicking_fgb_yds',
605 'desc': 'Field goal blocked (offense)',
606 'long': 'The length of an attempted field goal that was blocked. '
607 'Unlike a punt, a field goal is statistically blocked even '
608 'if the ball does go beyond the line of scrimmage.',
609 },
610 72: {
611 'cat': 'kicking',
612 'fields': ['kicking_xpa', 'kicking_xpmade'],
613 'yds': '',
614 'desc': 'Extra point - good',
615 'long': 'Extra point good. SuperStat uses one code for both '
616 'successful and unsuccessful extra points. I think it might '
617 'be better to use 2 codes.',
618 },
619 73: {
620 'cat': 'kicking',
621 'fields': ['kicking_xpa', 'kicking_xpmissed'],
622 'yds': '',
623 'desc': 'Extra point - failed',
624 'long': 'Extra point failed.',
625 },
626 74: {
627 'cat': 'kicking',
628 'fields': ['kicking_xpa', 'kicking_xpmissed', 'kicking_xpb'],
629 'yds': '',
630 'desc': 'Extra point - blocked',
631 'long': 'Extra point blocked. Exclusive of the extra point failed '
632 'stat.'
633 },
634 75: {
635 'cat': 'rushing',
636 'fields': ['rushing_twopta', 'rushing_twoptm'],
637 'yds': '',
638 'desc': '2 point rush - good',
639 'long': 'Extra points by run good (old version has 0/1 in yards '
640 'for failed/good).',
641 },
642 76: {
643 'cat': 'rushing',
644 'fields': ['rushing_twopta', 'rushing_twoptmissed'],
645 'yds': '',
646 'desc': '2 point rush - failed',
647 'long': '',
648 },
649 77: {
650 'cat': 'passing',
651 'fields': ['passing_twopta', 'passing_twoptm'],
652 'yds': '',
653 'desc': '2 point pass - good',
654 'long': 'Extra points by pass good (old version has 0/1 in yards '
655 'for failed/good).',
656 },
657 78: {
658 'cat': 'passing',
659 'fields': ['passing_twopta', 'passing_twoptmissed'],
660 'yds': '',
661 'desc': '2 point pass - failed',
662 'long': 'Extra point by pass failed.',
663 },
664 79: {
665 'cat': 'defense',
666 'fields': ['defense_tkl'],
667 'yds': '',
668 'desc': 'Solo tackle',
669 'long': 'Tackle with no assists. Note: There are no official '
670 'defensive statistics except for sacks.',
671 },
672 80: {
673 'cat': 'defense',
674 'fields': ['defense_tkl', 'defense_tkl_primary'],
675 'yds': '',
676 'desc': 'Assisted tackle',
677 'long': 'Tackle with one or more assists.',
678 },
679
680
681
682 82: {
683 'cat': 'defense',
684 'fields': ['defense_ast'],
685 'yds': '',
686 'desc': 'Tackle assist',
687 'long': 'Assist to a tackle.',
688 },
689 83: {
690 'cat': 'defense',
691 'fields': ['defense_sk'],
692 'yds': 'defense_sk_yds',
693 'value': 1.0,
694 'desc': 'Sack yards (defense)',
695 'long': 'Unassisted sack.',
696 },
697 84: {
698 'cat': 'defense',
699 'fields': ['defense_sk'],
700 'yds': 'defense_sk_yds',
701 'value': 0.5,
702 'desc': '1/2 sack yards (defense)',
703 'long': 'Sack split equally between two players.',
704 },
705 85: {
706 'cat': 'defense',
707 'fields': ['defense_pass_def'],
708 'yds': '',
709 'desc': 'Pass defensed',
710 'long': 'Incomplete pass was due primarily to the player\'s action.',
711 },
712 86: {
713 'cat': 'defense',
714 'fields': ['defense_puntblk'],
715 'yds': '',
716 'desc': 'Punt blocked (defense)',
717 'long': 'Player blocked a punt.',
718 },
719 87: {
720 'cat': 'defense',
721 'fields': ['defense_xpblk'],
722 'yds': '',
723 'desc': 'Extra point blocked (defense)',
724 'long': 'Player blocked the extra point.',
725 },
726 88: {
727 'cat': 'defense',
728 'fields': ['defense_fgblk'],
729 'yds': '',
730 'desc': 'Field goal blocked (defense)',
731 'long': '',
732 },
733 89: {
734 'cat': 'defense',
735 'fields': ['defense_safe'],
736 'yds': '',
737 'desc': 'Safety (defense)',
738 'long': 'Tackle that resulted in a safety. This is in addition to '
739 'a tackle.',
740 },
741
742
743
744 91: {
745 'cat': 'defense',
746 'fields': ['defense_ffum'],
747 'yds': '',
748 'desc': 'Forced fumble (defense)',
749 'long': 'Player forced a fumble.',
750 },
751 93: {
752 'cat': 'penalty',
753 'fields': ['penalty'],
754 'yds': 'penalty_yds',
755 'desc': 'Penalty',
756 'long': '',
757 },
758 95: {
759 'cat': 'team',
760 'fields': ['rush_loss'],
761 'yds': 'rush_loss_yds',
762 'desc': 'Tackled for a loss',
763 'long': 'Tackled for a loss (TFL) is an offensive stat. A team is '
764 'charged with a TFL if its rush ends behind the line of '
765 'scrimmage, and at least one defensive player is credited '
766 'with ending the rush with a tackle, or tackle assist. The '
767 'stat will contain yardage.',
768 },
769
770
771
772
773
774
775
776
777
778
779
780
781 102: {
782 'cat': 'team',
783 'fields': ['kickoff_downed'],
784 'yds': '',
785 'desc': 'Kickoff - kick downed',
786 'long': 'SuperStat didn\'t have this code. A kickoff is "downed" when '
787 'touched by an offensive player within the 10 yard free zone, '
788 'and the ball is awarded to the receivers at the spot of the '
789 'touch.',
790 },
791 103: {
792 'cat': 'passing',
793 'fields': [],
794 'yds': 'passing_sk_yds',
795 'desc': 'Sack yards (offense), No sack',
796 'long': 'This stat will be used when the passer fumbles, then '
797 'recovers, then laterals. The receiver of the lateral gets '
798 'sack yardage but no sack.',
799 },
800 104: {
801 'cat': 'receiving',
802 'fields': ['receiving_twopta', 'receiving_twoptm'],
803 'yds': '',
804 'desc': '2 point pass reception - good',
805 'long': '',
806 },
807 105: {
808 'cat': 'receiving',
809 'fields': ['receiving_twopta', 'receiving_twoptmissed'],
810 'yds': '',
811 'desc': '2 point pass reception - failed',
812 'long': '',
813 },
814 106: {
815 'cat': 'fumbles',
816 'fields': ['fumbles_lost'],
817 'yds': '',
818 'desc': 'Fumble - lost',
819 'long': '',
820 },
821 107: {
822 'cat': 'kicking',
823 'fields': ['kicking_rec'],
824 'yds': '',
825 'desc': 'Own kickoff recovery',
826 'long': 'Direct recovery of own kickoff, whether or not the kickoff '
827 'is onside',
828 },
829 108: {
830 'cat': 'kicking',
831 'fields': ['kicking_rec', 'kicking_rec_tds'],
832 'yds': '',
833 'desc': 'Own kickoff recovery, TD',
834 'long': 'Direct recovery in endzone of own kickoff, whether or not '
835 'the kickoff is onside.',
836 },
837 110: {
838 'cat': 'defense',
839 'fields': ['defense_qbhit'],
840 'yds': '',
841 'desc': 'Quarterback hit',
842 'long': 'Player knocked the quarterback to the ground, quarterback '
843 'was not the ball carrier. Not available for games before '
844 '2006 season.',
845 },
846 111: {
847 'cat': 'passing',
848 'fields': [],
849 'yds': 'passing_cmp_air_yds',
850 'desc': 'Pass length, completion',
851 'long': 'Length of the pass, not including the yards gained by the '
852 'receiver after the catch. Unofficial stat. Not available for '
853 'games before 2006 season.',
854 },
855 112: {
856 'cat': 'passing',
857 'fields': [],
858 'yds': 'passing_incmp_air_yds',
859 'desc': 'Pass length, No completion',
860 'long': 'Length of the pass, if it would have been a completion.'
861 'Unofficial stat. Not available for games before 2006 season.',
862 },
863 113: {
864 'cat': 'receiving',
865 'fields': [],
866 'yds': 'receiving_yac_yds',
867 'desc': 'Yardage gained after the catch',
868 'long': 'Yardage from where the ball was caught until the player\'s '
869 'action was over. Unofficial stat. Not available for games '
870 'before 2006 season.',
871 },
872 115: {
873 'cat': 'receiving',
874 'fields': ['receiving_tar'],
875 'yds': '',
876 'desc': 'Pass target',
877 'long': 'Player was the target of a pass attempt. Unofficial stat. '
878 'Not available for games before 2009 season.',
879 },
880 120: {
881 'cat': 'defense',
882 'fields': ['defense_tkl_loss'],
883 'yds': '',
884 'desc': 'Tackle for a loss',
885 'long': 'Player tackled the runner behind the line of scrimmage. '
886 'Play must have ended, player must have received a tackle '
887 'stat, has to be an offensive player tackled. Unofficial '
888 'stat. Not available for games before 2008 season.',
889 },
890
891 301: {
892 'cat': 'team',
893 'fields': ['xp_aborted'],
894 'yds': '',
895 'desc': 'Extra point - aborted',
896 'long': '',
897 },
898 402: {
899 'cat': 'defense',
900 'fields': [],
901 'yds': 'defense_tkl_loss_yds',
902 'desc': 'Tackle for a loss yards',
903 'long': '',
904 },
905 }
906