Skip to content

Commit

Permalink
Specific colors for contraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkuu committed Nov 12, 2019
1 parent 7001705 commit 37bca34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ def get_color(tense, seq=0):
elif tense in [u'pronom réfléchi']:
return '#00e686'

# Contraction
elif tense in ['contracted', 'bare noun']:
return '#2f5597'
elif tense in ['uncontracted', 'demonstrative']:
return '#fd8f8e'

else:
color_list = [
'#1f77b4',
Expand Down

0 comments on commit 37bca34

Please # to comment.