post_tag = [
[('You', 'PRP'), ('hereby', 'VBP'), ('grant', 'JJ'), ('to', 'TO'),
('FaceApp', 'VB'), ('a', 'DT'), ('fully', 'RB'), ('paid', 'VBN'), (',', ','),
('royalty-free', 'JJ'), (',', ','), ('perpetual', 'JJ'), (',', ','),
('irrevocable', 'JJ'), (',', ','), ('worldwide', 'JJ'), (',', ','),
('non-exclusive', 'JJ'), (',', ','), ('and', 'CC'), ('fully', 'RB'),
('sublicensable', 'JJ'), ('right', 'NN'), ('and', 'CC'), ('license', 'NN'),
('to', 'TO'), ('use', 'VB'), (',', ','), ('reproduce', 'VB'), (',', ','),
('perform', 'VB'), (',', ','), ('display', 'NN'), (',', ','),
('distribute', 'NN'), (',', ','), ('adapt', 'NN'), (',', ','),
('modify', 'VB'), (',', ','), ('re-format', 'JJ'), (',', ','),
('create', 'JJ'), ('derivative', 'JJ'), ('works', 'NNS'), ('of', 'IN'),
(',', ','), ('and', 'CC'), ('otherwise', 'RB'), ('commercially', 'RB'),
('or', 'CC'), ('non-commercially', 'RB'), ('exploit', 'NNS'), ('in', 'IN'),
('any', 'DT'), ('manner', 'NN'), (',', ','), ('any', 'DT'), ('and', 'CC'),
('all', 'DT'), ('Feedback', 'NNP'), (',', ','), ('and', 'CC'), ('to', 'TO'),
('sublicense', 'VB'), ('the', 'DT'), ('foregoing', 'NN'), ('rights', 'NNS'),
(',', ','), ('in', 'IN'), ('connection', 'NN'), ('with', 'IN'), ('the', 'DT'),
('operation', 'NN'), ('and', 'CC'), ('maintenance', 'NN'), ('of', 'IN'),
('the', 'DT'), ('Services', 'NNPS'), ('and/or', 'NN'), ('FaceApp', 'NNP'),
('’', 'NNP'), ('s', 'NN'), ('business', 'NN'), ('.', '.')]
]
# * list = whole text []
# * [ [] ] sublist = paragraph
# * [ [ (word, classification), (word, classification) ] ]
# to what structure do you to have this in?
'''
dict_class_ = { 'NN': ['s', ',maintenance', ...],
'NNP': [..., ,]
dict_word_class {'maintenance': 'NN',
####
# colonial glossary
######
dict_word_coloniality = {'maintenance': 50,
'business': 85, }
dict_word_coloniality = {'maintenance':
{'meaning': 'the colonial meaning of maintance',
'value': 50},
'business': {'meaning': ,
'value':},
}
Here is an an example source_text: "This business had maintenance"
dict_word_coloniality.get('This') => None
dict_word_coloniality.get('business') => {'meaning': 'the colonial meaning
of business',
'value': 50},
"This business
{% for word in text %}
{% if word in colon_dict.keys() %}
{{
word}}