«generate_titles» by Fredrik Olofsson

on 14 Jan'14 22:54 in randomtool

might be osx only

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
//redFrik april'06 - title generation techniques
//osx only
//please give credit if you use any of these in your code

//----------
~file= FileReader.read("/usr/share/dict/words");	//will take a little while to load
(
~fileFunc= {
	var b, c;
	b= ~file.choose[0];
	c= ~file.choose[0];
	b= b[0].toUpper++b.copyRange(1, b.size-1);
	c= c[0].toUpper++c.copyRange(1, c.size-1);
	(c++b).join
};
)
10.do{~fileFunc.value.postln};""

//----------
~file= FileReader.read("/usr/share/dict/web2a");
(
~fileFunc= {
	var b, c;
	b= ~file.choose[0];
	c= ~file.choose[0];
	b= b[0].toUpper++b.copyRange(1, b.size-1);
	c= c[0].toUpper++c.copyRange(1, c.size-1);
	(c++b).join
};
)
10.do{~fileFunc.value.postln};""

//----------
~file= FileReader.read("/usr/share/dict/web2");
(
~fileFunc= {
	var b, c;
	b= ~file.choose[0];
	c= ~file.choose[0];
	b= b[0].toUpper++b.copyRange(1, b.size-1);
	c= c[0].toUpper++c.copyRange(1, c.size-1);
	(c++b).join
};
)
10.do{~fileFunc.value.postln};""

//----------
~file= FileReader.read("/usr/share/dict/propernames");
(
~fileFunc= {
	var b, c;
	b= ~file.choose[0];
	c= ~file.choose[0];
	b= b[0].toUpper++b.copyRange(1, b.size-1);
	c= c[0].toUpper++c.copyRange(1, c.size-1);
	(c++b).join
};
)
10.do{~fileFunc.value.postln};""

//----------
~file= FileReader.read("/usr/share/dict/connectives");
(
~fileFunc= {
	var b, c;
	b= ~file.choose[0];
	c= ~file.choose[0];
	b= b[0].toUpper++b.copyRange(1, b.size-1);
	c= c[0].toUpper++c.copyRange(1, c.size-1);
	(c++b).join
};
)
10.do{~fileFunc.value.postln};""
descendants
«Re: generate_titles» by yvan (private)
full graph
raw 1585 chars (focus & ctrl+a+c to copy)
reception
comments