diff --git a/website/index-test.html b/website/index-test.html new file mode 100644 index 0000000..5a72b98 --- /dev/null +++ b/website/index-test.html @@ -0,0 +1,9150 @@ + + + + + Have you read your contract? + + + + + + + + +
+ +
+ Table of Contents

+ 1. Terms of Service
+ 2-1. Interpretation
+ 2-2. Definitions
+ ⤷ HAVE YOU READ YOUR CONTRACT?
+ ⤷ DIGITAL TEXT PUBLISHING ARCHIVE
+ ⤷ WORD ANALYSIS
+ ⤷ OBFUSCATION OF LANGUAGE
+
+ + +
+ List of Terms of Services

+ + Russia

+ FaceApp

+ + China

+ TicTok

+ + U.S.A.

+ PokemonGo
+ Snapchat
+ Netflix
+ facebook
+ instagram
+ Amazon

+ + Japan

+ Sony
+


+ List of Colonial Treaties

+ + Russia

+ Peace Treaty of Tartu, Estonia

+ + China

+ TicTok

+ + U.S.A.

+ Treaty of Paris (1898)

+ + + U.K.

+ United Kingdom–Korea Treaty of 1883
+ Hong Kong Letters Patent 1843

+ + Japan

+ Japan–Korea Agreement of 1905 +

+ + +
+ + + +
+

+


+ +

Terms of Service


+

Last updated: April 28, 2020

+

Please read these terms of service carefully before using Our service.





+ + +

Interpretation and Definitions


+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions.


+

The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+ + +


+ + +

Definitions

+

For the purposes of these Terms of service:

+ + +


+ + +

[1] (Zelkowitz, 2003): Advances in Computers: Information Repositories edited by Marvin Zelkowitz

+ +

[2] (Duus, 1998): The Abacus and the Sword: The Japanese Penetration of Korea. University of California Press.

+ + +



+ + +

Contents


+

This archive presents the following ToS such as + + + +

+ +, TikTok, PokemonGo, Snaptchat, Netflix, Amazon, Aibo(Sony). We also provide some historical treaties made during one's colonial era, such as + + + +
+ +
+ × + +
Peace Treaty of Tartu, Estonia
+ +
+ +
+
+
Name of Treaty
+
Peace Treaty of Tartu
+
+
+
+
Country of Origin
+
Russia
+
+
+ +
+
Signed
+
February 2, 1920
+
+
+
+
Location
+
Tartu, Estonia
+
+
+
+
Word Counts
+
2,104
+
+
+
+
Type
+
bilateral peace treaty
+
+
+
+
Original Source
+
+ link +
+
+
+
+
Description
+
The Tartu Peace Treaty or Treaty of Tartu is a peace treaty between Estonia and Russian Soviet Federative Socialist Republic signed on 2 February 1920, ending the Estonian War of Independence.
+
+
+
+ +
+

+ Article + 1 +

+

+ The + state + of + war + between + the + Contracting + Parties + will + end + on + the + day + on + which + the + present + Treaty + of + Peace + comes + into + force + . +

+

+ Article + 2 +

+

+ In + consequence + of + the + right + of + all + peoples + to + self-determination + , + to + the + point + of + seceding + completely + from + the + State + of + which + they + form + part + , + a + right + proclaimed + by + the + Socialist + and + Federal + Russian + Republic + of + the + Soviets + , + Russia + unreservedly + recognises + the + independence + and + sovereignty + of + the + State + of + Estonia + , + and + renounces + voluntarily + and + for + ever + all + sovereign + rights + possessed + by + Russia + over + the + Estonian + people + and + territory + whether + these + rights + be + based + on + the + juridical + position + that + formerly + existed + in + public + law + , + or + in + the + international + treaties + which + , + in + the + sense + here + indicated + , + lose + their + validity + in + future + . + From + the + fact + that + Estonia + has + belonged + to + Russia + , + no + obligation + whatsoever + will + fall + on + the + Estonian + people + and + land + to + Russia + . +

+

+ Article + 3 +

+

+ 1 + . + The + frontier + between + Esthonia + and + Russia + follows + the + following + line + : +

+

+ Starting + from + the + Bay + of + Narva + , + one + verst + south + of + the + Fishers + + House + , + it + turns + toward + Ropscha + , + then + follows + the + course + of + the + Rivers + Mertvitskaja + and + Rosson + , + as + far + as + the + village + of + Ilkino + , + from + Ilkino + one + verst + west + of + the + village + Keikino + , + half + a + verst + west + of + the + village + of + Isvosi + and + turns + towards + the + village + of + Kobõljaki + ; + it + then + crosses + the + mouth + of + the + river + Schtschutschka + , + passes + by + Krivaja + Luka + , + by + the + estate + of + Petschurki + , + to + the + confluence + of + three + sources + of + the + river + Vtroja + , + follows + the + southern + boundary + of + the + village + of + Kuritschek + with + its + dependences + , + then + turns + in + a + straight + line + as + far + as + the + centre + line + of + the + Lake + Peipus + , + follows + it + in + a + southern + direction + , + and + thus + passes + one + verst + to + the + east + of + Piirisaar + ( + Pork + ) + ; + follows + the + narrow + strip + of + the + lake + dividing + it + along + the + middle + as + far + as + the + island + of + Salu + , + thence + passes + through + Lake + Pihkva + ( + Pskov + ) + between + the + Islands + of + Talabski + and + the + Island + of + Kamonka + , + then + to + the + east + of + the + village + of + Poddubje + ( + on + the + southern + bank + of + Lake + Pihkva + ) + and + to + the + outlook + post + on + the + railway + situated + near + to + Grjardischtsche + , + then + passes + successively + to + the + west + of + the + Village + of + Schahintsõi + , + to + the + east + of + Novaja + , + across + the + Lake + Poganova + , + between + the + villages + of + Babina + and + Vomorski + , + to + one + verst + and + a + half + to + the + south + of + the + Forestry + keeper + + s + house + ( + which + is + situated + to + the + north + of + Glybotschina + ) + to + Sprechtitschi + and + to + the + Farm + Kudepi + . +

+

+ Note + 1 + . + The + Frontier + described + in + this + Article + is + shown + in + red + on + the + map + , + scale + of + three + versts + to + the + inch + ( + 0.0254 + metre + ) + , + which + constitutes + the + first + Annex + to + Article + 3 + . + In + case + of + difference + between + the + text + and + the + map + , + it + is + to + the + text + that + one + must + adhere + . +

+

+ Note + 2 + . + The + tracing + of + the + boundary + between + the + two + contracting + countries + and + the + placing + in + position + of + the + frontier + signs + will + be + carried + out + under + the + direction + of + a + special + mixed + commission + composed + of + an + equal + number + of + members + from + both + parties + . + In + marking + the + boundary + line + this + mixed + commission + will + decide + the + allocation + of + inhabited + areas + on + the + frontier + to + one + or + other + of + the + parties + according + to + ethnographical + indications + and + bearing + in + mind + economic + agreements + and + agricultural + consideration + . +

+

+ 2 + . + The + portion + of + the + territory + of + Esthonia + to + the + east + of + the + Narova + , + the + River + Narova + itself + , + and + the + islands + in + the + midst + of + the + stream + , + as + well + as + the + zone + to + the + south + of + Lake + Pihkva + , + which + is + situated + between + the + boundary + above + mentioned + and + the + line + of + villages + , + Borok-Smolni-Belkova-Sprechtitschi + , + will + be + , + from + a + military + point + of + view + , + considered + as + neutral + until + 1 + January + 1922 + . +

+

+ Esthonia + undertakes + to + maintain + no + troops + of + any + kind + in + the + neutralized + zones + other + than + those + which + are + necessary + for + the + frontier + service + and + the + maintenance + of + order + , + and + of + which + the + strength + is + laid + down + in + Annex + 2 + of + the + present + Article + ; + not + to + construct + fortifications + or + observation + posts + , + nor + to + constitute + military + depots + , + nor + to + deposit + any + kind + of + war + material + whatsoever + with + the + exception + of + what + is + indispensable + for + the + effectives + allowed + for + ; + nor + to + establish + ther + bases + or + depots + for + the + use + of + any + kind + of + vessels + , + or + of + any + kind + of + aerial + fleet + . +

+

+ 3 + . + Russia + for + her + part + undertakes + not + to + maintain + troops + in + the + region + of + Pskov + to + the + west + of + the + line + : + western + bank + of + the + mouth + of + Velikaja + , + the + villages + of + Sivtseva + , + Luhnova + , + Samulina + , + Schalki + and + Sprechtitschi + until + 1 + January + 1922 + , + which + are + indispensable + for + the + frontier + service + and + for + the + maintenance + of + order + and + for + the + effectives + provided + for + in + Annex + 2 + of + the + present + Article + . +

+

+ 4 + . + The + contracting + parties + undertake + to + have + no + armed + vessels + whatsoever + on + Lakes + Peipus + and + Pihkva + . +

+

+ Article + 4 +

+

+ During + one + year + from + the + day + of + ratification + of + the + present + Treaty + , + persons + of + non-Estonian + origin + living + in + Estonia + , + and + over + eighteen + years + of + age + , + have + the + right + to + opt + for + Russian + nationality + ; + women + , + and + children + , + less + than + eighteen + years + of + age + , + take + the + nationality + of + the + husband + or + the + father + , + unless + there + exists + between + man + and + wife + any + contrary + agreement + . + The + people + who + have + opted + for + Russian + nationality + must + , + within + a + year + from + the + date + of + their + choice + , + leave + Estonian + territory + ; + but + they + maintain + their + rights + over + the + property + and + can + take + with + them + their + movable + property + . + In + the + same + way + persons + of + Estonian + origin + living + in + Russia + can + opt + for + Estonian + nationality + within + the + same + length + of + time + and + under + the + same + conditions + . +

+

+ Each + of + the + contracting + Governments + reserves + the + right + to + refuse + acceptance + to + its + citizenship + of + such + persons + . +

+

+ Note + . + In + case + of + doubt + about + tho + origin + of + persons + , + all + those + who + could + have + been + personally + registered + or + whose + parents + would + have + been + registered + in + a + rural + or + urban + community + , + or + in + a + + class + + on + the + territory + now + composing + the + State + of + Estonia + , + shall + be + considered + as + Estonians + . +

+

+ Article + 5 +

+

+ In + case + the + perpetual + neutrality + of + Estonia + should + be + internationally + recognised + , + Russia + undertakes + to + respect + this + neutrality + and + to + take + part + in + guaranteeing + it + . +

+

+ Article + 6 +

+

+ Should + the + Gulf + of + Finland + be + neutralised + , + the + two + contracting + Parties + undertake + to + accede + to + this + neutralisation + , + on + conditions + determined + by + common + agreement + by + all + the + States + concerned + , + and + established + by + the + international + acts + relating + thereto + ; + should + the + international + convention + referred + to + be + concluded + , + they + also + undertake + to + put + their + naval + forces + , + or + part + thereof + , + into + such + conditions + as + this + international + convention + may + require + . +

+

+ Article + 7 +

+

+ The + two + Contracting + Parties + undertake + : +

+

+ 1 + . + To + prohibit + the + presence + in + their + territory + of + any + troops + with + the + exception + of + those + of + their + own + Government + or + of + friendly + States + with + whom + one + of + the + Contracting + Parties + may + have + concluded + a + military + convention + , + but + which + are + not + de + facto + in + a + state + of + war + with + one + of + the + Contracting + Parties + , + and + also + to + prohibit + within + the + limits + of + their + territory + , + the + recruiting + and + mobilisation + of + particular + corps + by + States + , + organisations + and + groups + , + intended + for + armed + conflict + against + the + other + Contracting + Parties + . +

+

+ 2 + . + To + disarm + those + military + and + naval + forces + within + their + territory + which + did + not + belong + to + one + of + the + Contracting + Parties + on + the + first + of + October + , + One + thousand + nine + hundred + and + nineteen + ; + to + neutralise + and + immobilise + , + until + the + first + of + January + , + One + thousand + nine + hundred + and + twenty-two + , + all + property + , + artillery + and + commissariat + material + ( + exclusive + of + food + and + clothing + ) + , + engineering + and + aviational + material + , + i. + e. + , + guns + , + machine + guns + , + rifles + , + side-arms + , + munitions + , + aeroplanes + , + armoured + vehicles + , + tanks + , + armoured + trains + , + etc. + , + belonging + to + the + military + and + naval + forces + referred + to + with + the + exception + of + such + technical + and + war + material + as + was + handed + over + to + these + forces + , + but + which + belongs + to + the + Contracting + Parties + or + to + other + States + , + any + portion + of + this + material + which + belongs + to + other + States + shall + be + returned + within + six + months + from + the + date + of + the + ratification + of + this + Treaty + . + The + disarmament + of + the + above-mentioned + irregular + military + and + naval + forces + , + and + the + immobilisation + and + neutralisation + of + their + military + stocks + and + of + all + their + technical + and + war + material + must + be + completed + : + the + first + 30 + per + cent + . + of + men + and + material + within + the + first + seven + days + after + the + ratification + of + the + present + Treaty + of + Peace + , + and + the + remainder + within + the + two + following + weeks + at + the + rate + of + thirty-five + per + cent + per + week + . +

+

+ 3 + . + To + prohibit + the + soldiers + and + officers + of + the + irregular + troops + who + are + subject + to + disarmament + under + the + conditions + laid + down + by + the + prececing + Point + ( + 2 + ) + from + joining + in + any + capacity + whatsoever + , + as + volunteers + , + the + ranks + of + the + Government + troops + of + the + Contracting + Parties + , + with + the + exception + of + : +

+

+ ( + a + ) + Persons + of + Estonian + nationality + who + reside + outside + Estonia + , + but + who + have + opted + for + that + country + ; + ( + b + ) + Persons + not + of + Estonian + nationality + who + resided + in + Estonia + before + the + first + of + May + , + One + thousand + nine + hundred + and + nineteen + , + and + who + have + not + opted + to + Russia + ; + ( + c + ) + Persons + not + of + Estonian + nationality + who + have + not + opted + for + Russia + and + who + served + in + the + Estonian + army + before + the + twenty-seventh + of + November + , + One + thousand + nine + hundred + and + nineteen + . + Persons + belonging + to + the + classes + mentioned + in + sub-divisions + ( + a + ) + , + ( + b + ) + , + and + ( + c + ) + , + may + serve + with + the + armies + of + the + Estonian + Government + . +

+

+ 4 + . + ( + a + ) + To + prohibit + any + State + , + which + is + de + facto + in + a + state + of + war + with + one + of + the + Contracting + Parties + , + and + any + organisations + or + groups + intended + for + an + armed + conflict + with + one + of + the + Contracting + Parties + , + for + transporting + through + their + ports + or + their + territories + anything + which + might + be + used + for + attacking + the + other + Contracting + Party + , + particularly + armed + forces + belonging + to + these + States + , + organisations + or + groups + , + and + any + article + and + war + material + used + for + artillery + , + commissariat + , + engineering + , + aviation + , + etc. + , + which + may + belong + to + these + military + formations + . +

+

+ 4 + . + ( + b + ) + To + prohibit + , + exclusive + of + cases + provided + for + by + international + law + , + the + launching + and + navigation + in + their + territorial + waters + of + any + warships + , + gun-boats + , + mine-layers + , + etc. + , + belonging + either + to + organisations + or + groups + which + are + intended + to + fight + against + the + other + Contracting + Party + or + to + States + which + are + in + a + state + of + war + with + this + party + , + if + those + ships + are + intended + to + attack + it + , + and + if + this + intention + is + known + to + the + Contracting + Party + to + whose + territory + the + ports + and + territorial + waters + so + used + belong + . +

+

+ 5 + . + Not + to + authorise + the + formation + or + presence + in + their + territory + of + any + organisation + or + groups + whatsoever + , + which + claim + to + govern + the + whole + or + part + of + the + territory + of + the + other + Contracting + Party + , + or + the + presence + of + representatives + or + officials + of + organisations + and + groups + , + whose + object + it + is + to + overthrow + the + Government + of + the + other + party + to + the + Treaty + . +

+

+ 6 + . + The + Governments + of + the + two + Contracting + Parties + undertake + , + upon + exchanging + the + ratification + of + this + Treaty + of + Peace + to + furnish + each + other + with + precise + information + regarding + the + strength + of + the + non-Governmental + and + also + of + military + stocks + ( + stationary + or + mobile + ) + , + and + of + the + military + and + technical + material + belonging + to + those + irregular + forces + , + which + were + on + their + territory + at + the + time + when + the + Armistice + was + concluded + , + that + is + to + say + , + on + the + thirty-first + of + December + , + One + thousand + nine + hundred + and + nineteen + . +

+

+ 7 + . + In + order + to + superintend + the + carrying + out + of + the + military + guarantees + conceded + to + each + other + by + the + Contracting + Parties + , + a + mixed + commission + is + to + be + established + whose + composition + , + rights + and + obligations + shall + be + determined + by + + Instructions + + which + are + annxed + to + the + present + Article + . +

+
+ +
+
colonial words:
+
 order (1)
+
 superintend (1)
+
 carrying (1)
+
 military (1)
+
 guarantees (1)
+
 conceded (1)
+
 contracting (1)
+
 parties (1)
+
 mixed (1)
+
 commission (1)
+
 established (1)
+
 whose (1)
+
 composition (1)
+
 rights (1)
+
 obligations (1)
+
 shall (1)
+
 determined (1)
+
 instructions (1)
+
 annxed (1)
+
 present (1)
+
+ + + +
+
+ + + + +, for you to interpret how the former might have had some similar characteristics to the latter.

+ +


+ + +

our service

+ + + + + + + + +

Acknowledgement

+

These are the Terms of service governing the use of this service and the agreement that operates between You and the Company. These Terms of service set out the rights and obligations of all users regarding the use of the service.

+

Your access to and use of the service is conditioned on Your acceptance of and compliance with these Terms of service. These Terms of service apply to all visitors, users and others who access or use the service.

+

By accessing or using the service You agree to be bound by these Terms of service. If You disagree with any part of these Terms of service then You may not access the service.

+

You represent that you are over the age of 18. The Company does not permit those under 18 to use the service.

+

Your access to and use of the service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our service.

+ + + + + + + + + + +

Links to Other Websites

+

Our service may contain links to third-party web sites or services that are not owned or controlled by the Company.

+

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

+

We strongly advise You to read the terms of service and privacy policies of any third-party web sites or services that You visit.

+ +

Termination

+

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms of service.

+

Upon termination, Your right to use the service will cease immediately.

+ +

Limitation of Liability

+

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the service or 100 USD if You haven't purchased anything through the service.

+

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the service, third-party software and/or third-party hardware used with the service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

+

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

+ +

"AS IS" and "AS AVAILABLE" Disclaimer

+

The service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

+

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the service, or the information, content, and materials or products included thereon; (ii) that the service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the service; or (iv) that the service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

+

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

+ +

Governing Law

+

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the service. Your use of the Application may also be subject to other local, state, national, or international laws.

+ +

Disputes Resolution

+

If You have any concern or dispute about the service, You agree to first try to resolve the dispute informally by contacting the Company.

+ +

For European Union (EU) Users

+

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

+ + +

United States Legal Compliance

+

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

+ +

Severability and Waiver

+

Severability

+

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

+ +

Waiver

+

Except as provided herein, the failure to exercise a right or to require performance of an obligation under this Terms shall not effect a party's ability to exercise such right or require such performance at any time thereafter nor shall be the waiver of a breach constitute a waiver of any subsequent breach.

+ +

Translation Interpretation

+

These Terms of service may have been translated if We have made them available to You on our service.

+

You agree that the original English text shall prevail in the case of a dispute.

+ +

Changes to These Terms of service

+

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

+

By continuing to access or use Our service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the service.

+ +

Contact Us

+

If you have any questions about these Terms of service, You can contact us:

+ + +
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/website/index-test.py b/website/index-test.py new file mode 100644 index 0000000..7ce27de --- /dev/null +++ b/website/index-test.py @@ -0,0 +1,475 @@ +# from __future__ import division +from nltk import sent_tokenize, word_tokenize, pos_tag +from nltk.probability import FreqDist +from nltk.corpus import stopwords +import nltk +import codecs +import base64 + + +nltk.download('stopwords') + + +# faceapp_file = open('faceapp.txt','r') +with open('tos_file/faceapp.txt', 'r') as faceapp_file: + faceapp_text = faceapp_file.read() + faceapp_text_list = faceapp_text.split("\n\n") + +with open('treaty_file/russia-estonia.txt', 'r') as russia_file: + russia_text = russia_file.read() + russia_text_list = russia_text.split("\n\n") + + +#tos stopwords +tos_default_stopwords = set(stopwords.words('english')) +tos_custom_stopwords = set(codecs.open('stopwords.txt', 'r').read().splitlines()) +tos_all_stopwords = tos_default_stopwords | tos_custom_stopwords + +#treaty stopwords +t_default_stopwords = set(stopwords.words('english')) +t_custom_stopwords = set(codecs.open('t_stopwords.txt', 'r').read().splitlines()) +t_all_stopwords = t_default_stopwords | t_custom_stopwords + + +# multi-line string HTML +print(''' + + + + + + + + + +''') + + +# $('div.t_chosen_words_{0}').mouseover(function(){ +# $(this).find('.t_chosen_words_{0}').text('i + 'is here').css('color', 'red'); +# }) +# .mouseout(function() { +# $( this ).find( ".t_chosen_words" ).text( " " ).css('color', 'black'); +# }); + + + + +#wrapper +print('
') + +#insert an image +# https://upload.wikimedia.org/wikipedia/commons/1/15/Joffe_signing_the_Treaty_of_Tartu.jpg +FaceApp_img_url = base64.b64encode(open('img/faceapp_logo.png', 'rb').read()).decode('utf-8') +FaceApp_image = '
FaceApp
'.format(FaceApp_img_url) +print(FaceApp_image) + + +#info box +print('
') +infotext = [('Name of Service', 'FaceApp'), ('Country of Origin', 'Russia'), ('Initial release', 'December 31, 2016'), ('Type', 'Image editing'), ('Word Counts', '5,392'), ('Original Source', 'link'), ('Description', 'FaceApp is a mobile application for iOS and Android developed by Russian company Wireless Lab. The app generates highly realistic transformations of human faces in photographs by using neural networks based on artificial intelligence. The app can transform a face to make it smile, look younger, look older, or change gender.')] + +for title, info in infotext: + print('
{0}
{1}

'.format(title, info)) + +print('
') + + + +#ToS text +print('
') +for paragraph in faceapp_text_list: + tokenized = word_tokenize(paragraph) + tagged = pos_tag(tokenized) + print('

') + for word, pos in tagged: + print('{}'.format(pos.replace('.', 'dot').replace(',', 'comma').replace('(', 'marks').replace(')', 'marks').replace(':', 'marks').replace(';', 'marks'), word.replace('.', 'dot').replace(',', 'comma').replace('(', 'marks').replace(')', 'marks').replace(':', 'marks').replace(';', 'marks').lower(), word)) + print('

') + +print('
') + + +#tos top words list +print('
colonial words:
') + +tokens_without_stopwords = nltk.FreqDist(words.lower() for words in tokenized if words.lower() not in tos_all_stopwords) +frequency_word = FreqDist(tokens_without_stopwords) +top_words = tokens_without_stopwords.most_common(30) + + +for chosen_words, frequency in top_words: + print('
 {} ({})
'.format(chosen_words, frequency)) + +print('
') + + + + + +#t_wrapper (second wrapper) +print('
') + + + + + + + + +#insert an image +# https://upload.wikimedia.org/wikipedia/commons/1/15/Joffe_signing_the_Treaty_of_Tartu.jpg +img_url = base64.b64encode(open('img/tartu.jpeg', 'rb').read()).decode('utf-8') +t_image = '
Peace Treaty of Tartu, Estonia
'.format(img_url) +print(t_image) + + +#t_info box +print('
') +t_infotext = [('Name of Treaty', 'Peace Treaty of Tartu'), ('Country of Origin', 'Russia'), ('Signed', 'February 2, 1920'), ('Location', 'Tartu, Estonia'), ('Word Counts', '2,104'), ('Type', 'bilateral peace treaty'), ('Original Source', 'link'), ('Description', 'The Tartu Peace Treaty or Treaty of Tartu is a peace treaty between Estonia and Russian Soviet Federative Socialist Republic signed on 2 February 1920, ending the Estonian War of Independence.')] + +for t_title, t_info in t_infotext: + print('
{0}
{1}

'.format(t_title, t_info)) + +print('
') + + +#Treaty text +print('
') +for t_paragraph in russia_text_list: + t_tokenized = word_tokenize(t_paragraph) + t_tagged = pos_tag(t_tokenized) + print('

') + for t_word, t_pos in t_tagged: + print('{2}'.format(t_pos.replace('.', 'dot').replace(',', 'comma').replace('(', 'marks').replace(')', 'marks').replace(':', 'marks').replace(';', 'marks'), t_word.replace('.', 'dot').replace(',', 'comma').replace('(', 'marks').replace(')', 'marks').replace(':', 'marks').replace(';', 'marks').lower(), t_word)) + print('

') + +print('
') + + +#treaty colonial top words list +print('
colonial words:
') + +t_tokens_without_stopwords = nltk.FreqDist(words.lower() for words in t_tokenized if words.lower() not in t_all_stopwords) +t_frequency_word = FreqDist(t_tokens_without_stopwords) +t_top_words = t_tokens_without_stopwords.most_common(20) + +for t_chosen_words, t_frequency in t_top_words: + print('
 {} ({})
'.format(t_chosen_words, t_frequency)) + +print('
') + + + +print('') +print('''''') + diff --git a/website/index2.html b/website/index2.html new file mode 100644 index 0000000..d5fb8e4 --- /dev/null +++ b/website/index2.html @@ -0,0 +1,739 @@ + + + + Have you read your contract? + + + + + + + + + +
+ +
+ Table of Contents

+ 1. Terms of Service
+ 2-1. Interpretation
+ 2-2. Definitions
+ ⤷ HAVE YOU READ YOUR CONTRACT?
+ ⤷ DIGITAL TEXT PUBLISHING ARCHIVE
+ ⤷ WORD ANALYSIS
+ ⤷ OBFUSCATION OF LANGUAGE
+
+ + +
+ List of Terms of Services

+ + Russia

+ FaceApp

+ + China

+ TicTok

+ + U.S.A.

+ PokemonGo
+ Snapchat
+ Netflix
+ facebook
+ instagram
+ Amazon

+ + Japan

+ Sony
+


+ List of Colonial Treaties

+ + Russia

+ Peace Treaty of Tartu, Estonia

+ + China

+ TicTok

+ + U.S.A.

+ Treaty of Paris (1898)

+ + + U.K.

+ United Kingdom–Korea Treaty of 1883
+ Hong Kong Letters Patent 1843

+ + Japan

+ Japan–Korea Agreement of 1905 +

+ + +
+ + + +
+

+ +


+ +

Terms of Service


+

Last updated: April 28, 2020

+

Please read these terms of service carefully before using Our service.





+ + +

Interpretation and Definitions


+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions.


+

The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+ + +


+ + +

Definitions

+

For the purposes of these Terms of service:

+ + +


+ + +

[1] (Zelkowitz, 2003): Advances in Computers: Information Repositories edited by Marvin Zelkowitz

+ +

[2] (Duus, 1998): The Abacus and the Sword: The Japanese Penetration of Korea. University of California Press.

+ + +



+ + +

Contents


+

This archive presents the following ToS such as + + + + + +

+, TikTok, PokemonGo, Snaptchat, Netflix, Amazon, Aibo(Sony). We also provide some historical treaties made during one's colonial era, such as ........, for you to interpret how the former might have had some similar characteristics to the latter.

+ +


+ + +

our service

+ + + + + + + + +

Acknowledgement

+

These are the Terms of service governing the use of this service and the agreement that operates between You and the Company. These Terms of service set out the rights and obligations of all users regarding the use of the service.

+

Your access to and use of the service is conditioned on Your acceptance of and compliance with these Terms of service. These Terms of service apply to all visitors, users and others who access or use the service.

+

By accessing or using the service You agree to be bound by these Terms of service. If You disagree with any part of these Terms of service then You may not access the service.

+

You represent that you are over the age of 18. The Company does not permit those under 18 to use the service.

+

Your access to and use of the service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our service.

+ + + + + + + + + + +

Links to Other Websites

+

Our service may contain links to third-party web sites or services that are not owned or controlled by the Company.

+

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

+

We strongly advise You to read the terms of service and privacy policies of any third-party web sites or services that You visit.

+ +

Termination

+

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms of service.

+

Upon termination, Your right to use the service will cease immediately.

+ +

Limitation of Liability

+

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the service or 100 USD if You haven't purchased anything through the service.

+

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the service, third-party software and/or third-party hardware used with the service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

+

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

+ +

"AS IS" and "AS AVAILABLE" Disclaimer

+

The service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

+

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the service, or the information, content, and materials or products included thereon; (ii) that the service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the service; or (iv) that the service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

+

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

+ +

Governing Law

+

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the service. Your use of the Application may also be subject to other local, state, national, or international laws.

+ +

Disputes Resolution

+

If You have any concern or dispute about the service, You agree to first try to resolve the dispute informally by contacting the Company.

+ +

For European Union (EU) Users

+

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

+ + +

United States Legal Compliance

+

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

+ +

Severability and Waiver

+

Severability

+

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

+ +

Waiver

+

Except as provided herein, the failure to exercise a right or to require performance of an obligation under this Terms shall not effect a party's ability to exercise such right or require such performance at any time thereafter nor shall be the waiver of a breach constitute a waiver of any subsequent breach.

+ +

Translation Interpretation

+

These Terms of service may have been translated if We have made them available to You on our service.

+

You agree that the original English text shall prevail in the case of a dispute.

+ +

Changes to These Terms of service

+

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

+

By continuing to access or use Our service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the service.

+ +

Contact Us

+

If you have any questions about these Terms of service, You can contact us:

+ + +
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/website/index3.html b/website/index3.html new file mode 100644 index 0000000..4cc887b --- /dev/null +++ b/website/index3.html @@ -0,0 +1,409 @@ + + + + Have you read your contract? + + + + + + +
+ +
+ + +


+ +

Terms of Service

+

Last updated: April 28, 2020

+

Please read these terms of service carefully before using Our service.



+ -------------------------------------------------------------------------------------------- + +

Interpretation and Definitions

+

Interpretation

+

The words of which the initial letter is capitalized have meanings defined under the following conditions.

+

The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

+ + +
+ + +

Definitions

+

For the purposes of these Terms of service:

+ + +

[1] (Zelkowitz, 2003): Advances in Computers: Information Repositories edited by Marvin Zelkowitz

+ +

[2] (Duus, 1998): The Abacus and the Sword: The Japanese Penetration of Korea. University of California Press.

+ + +

+ + +

Contents

+

This archive presents the following ToS such as FaceApp, TikTok, PokemonGo, Snaptchat, Netflix, Amazon, Aibo(Sony). We also provide some historical treaties made during one's colonial era, such as ........, for you to interpret how the former might have had some similar characteristics to the latter.

+ +

+ + +

our service

+ + + + + + + + +

Acknowledgement

+

These are the Terms of service governing the use of this service and the agreement that operates between You and the Company. These Terms of service set out the rights and obligations of all users regarding the use of the service.

+

Your access to and use of the service is conditioned on Your acceptance of and compliance with these Terms of service. These Terms of service apply to all visitors, users and others who access or use the service.

+

By accessing or using the service You agree to be bound by these Terms of service. If You disagree with any part of these Terms of service then You may not access the service.

+

You represent that you are over the age of 18. The Company does not permit those under 18 to use the service.

+

Your access to and use of the service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our service.

+ + + + + + + + + + +

Links to Other Websites

+

Our service may contain links to third-party web sites or services that are not owned or controlled by the Company.

+

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

+

We strongly advise You to read the terms of service and privacy policies of any third-party web sites or services that You visit.

+ +

Termination

+

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms of service.

+

Upon termination, Your right to use the service will cease immediately.

+ +

Limitation of Liability

+

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the service or 100 USD if You haven't purchased anything through the service.

+

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the service, third-party software and/or third-party hardware used with the service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

+

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

+ +

"AS IS" and "AS AVAILABLE" Disclaimer

+

The service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

+

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the service, or the information, content, and materials or products included thereon; (ii) that the service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the service; or (iv) that the service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

+

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

+ +

Governing Law

+

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the service. Your use of the Application may also be subject to other local, state, national, or international laws.

+ +

Disputes Resolution

+

If You have any concern or dispute about the service, You agree to first try to resolve the dispute informally by contacting the Company.

+ +

For European Union (EU) Users

+

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

+ + +

United States Legal Compliance

+

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

+ +

Severability and Waiver

+

Severability

+

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

+ +

Waiver

+

Except as provided herein, the failure to exercise a right or to require performance of an obligation under this Terms shall not effect a party's ability to exercise such right or require such performance at any time thereafter nor shall be the waiver of a breach constitute a waiver of any subsequent breach.

+ +

Translation Interpretation

+

These Terms of service may have been translated if We have made them available to You on our service.

+

You agree that the original English text shall prevail in the case of a dispute.

+ +

Changes to These Terms of service

+

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

+

By continuing to access or use Our service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the service.

+ +

Contact Us

+

If you have any questions about these Terms of service, You can contact us:

+ + +
+
+ + \ No newline at end of file diff --git a/website/russia.html b/website/russia.html index 238c28b..0314b95 100644 --- a/website/russia.html +++ b/website/russia.html @@ -76,8 +76,9 @@ float: left; } + + .t_img { - # background-color: Aquamarine; font-family: Belgika; font-size: 20pt; padding-top: 30px; @@ -85,10 +86,19 @@ } .img { - height: 30vh; + height: 10vh; margin-top: 30px; } + .img_clicked { + height: 40vh; + margin-top: 30px; + + } + + + + .info { # background-color: LightSkyBlue; font-family: helvetica; @@ -252,7 +262,6 @@ .propernoun { background-color: pink; - # color: pink; } .NNP:hover, .NNPS:hover { @@ -270,18 +279,43 @@ } + .highlight { + background-color: yellow; + } + + + + +
FaceApp
@@ -2167,7 +2215,7 @@ $(document).ready(function() { legal agent . -Without +Without limiting the foregoing @@ -6107,7 +6155,7 @@ $(document).ready(function() {

colonial words:
-
 agreement (5)
+
 agreement (5)
 california (2)
 section (2)
 consumer (2)
diff --git a/website/russia.py b/website/russia.py index 2ff830b..b8d8f11 100644 --- a/website/russia.py +++ b/website/russia.py @@ -110,6 +110,19 @@ print(''' float: left; } + .img { + # background-color: Aquamarine; + font-family: Belgika; + font-size: 20pt; + padding-top: 30px; + float: left; + } + + .image { + height: 30vh; + margin-top: 30px; + } + .t_img { # background-color: Aquamarine; font-family: Belgika; @@ -118,7 +131,7 @@ print(''' float: left; } - .img { + .t_image { height: 30vh; margin-top: 30px; } @@ -376,7 +389,7 @@ print('
') #insert an image # https://upload.wikimedia.org/wikipedia/commons/1/15/Joffe_signing_the_Treaty_of_Tartu.jpg FaceApp_img_url = base64.b64encode(open('img/faceapp_logo.png', 'rb').read()).decode('utf-8') -FaceApp_image = '
FaceApp
'.format(FaceApp_img_url) +FaceApp_image = '
FaceApp
'.format(FaceApp_img_url) print(FaceApp_image) @@ -442,7 +455,7 @@ print('
') #insert an image # https://upload.wikimedia.org/wikipedia/commons/1/15/Joffe_signing_the_Treaty_of_Tartu.jpg img_url = base64.b64encode(open('img/tartu.jpeg', 'rb').read()).decode('utf-8') -t_image = '
Peace Treaty of Tartu, Estonia
'.format(img_url) +t_image = '
Peace Treaty of Tartu, Estonia
'.format(img_url) print(t_image) diff --git a/website/tag_comparison_v3.py b/website/tag_comparison_v3.py index 2b6d946..7ce27de 100644 --- a/website/tag_comparison_v3.py +++ b/website/tag_comparison_v3.py @@ -62,9 +62,17 @@ print(''' url("http://bohyewoo.com/webfonts/belgika/belgika-8th-webfont.svg#filename") format("svg"); } + @font-face { + font-family: "DMMono"; + src: url("http://bohyewoo.com/webfonts/belgika/DMMono-Regular.eot"); + src: url("http://bohyewoo.com/webfonts/belgika/DMMono-Regular.woff") format("woff"), + url("http://bohyewoo.com/webfonts/belgika/belgika-8th-webfont.svg#filename") format("svg"); + } + + @font-face { font-family: "SourceCodePro"; - src: url("http://bohyewoo.com/webfonts/Source_Code_Pro/SourceCodePro-Regular.ttf"); + src: url("http://bohyewoo.com/webfonts/Source_Code_Pro/SourceCodePro-Regular.ttf") format("ttf"); }