forked from fatiherikli/language-evolution-simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (68 loc) · 2.3 KB
/
index.html
File metadata and controls
74 lines (68 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Otomat</title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<div class="canvas-container">
<h1>Language Evolution Simulation</h1>
<p>with <a href="https://www.wikiwand.com/en/Agent-based_model">Agent Based Models</a>
- <a href="http://github.com/fatiherikli/language-evolution-simulation">Source code on github</a></p>
<svg id="canvas" xmlns="http://www.w3.org/2000/svg" width="510" height="420"></svg>
<div class="info">
<div id="stats"></div>
</div>
</div>
<div class="rules">
<h3>Rules</h3>
If an agent intersect with another agent, picks a word
from the own vocabulary and tells that. The neighborhood receives and adds that word into its vocabulary as
<ul>
<li>Mutation of a vowel sound with 0.1 probability</li>
<li>Mutation of a const sound with 0.1 probability</li>
<li>Comparing with another word</li>
<li>Without any mutation</li>
</ul>
</div>
<div class="event-log-container">
<h3>Event Log</h3>
<ul id="event-log"></ul>
</div>
<script type="text/template" id="island_stats_template">
<div class="island-stats">
<h3 style="color: {{= color }}">{{= name }}</h3>
<h4>Most used word</h4>
<span class="word">{{= instance ? instance.word : 'N/A' }}</span>
<span class="parent">{{= instance && instance.parent && instance.parent.word }}</span>
</div>
</script>
<script src="js/Map.js"></script>
<script src="js/Island.js"></script>
<script src="js/Model.js"></script>
<script src="js/Agent.js"></script>
<script src="js/Simulation.js"></script>
<script src="js/Word.js"></script>
<script src="js/EventLog.js"></script>
<script src="js/Counter.js"></script>
<script src="js/utils.js"></script>
<script>
var model = new Model();
model.setup();
var simulation = new Simulation(
document.getElementById('canvas'),
model
);
simulation.run();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80915884-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>