{
   "description" : "might be osx only",
   "ancestor_list" : [],
   "name" : "generate_titles",
   "author" : "Fredrik Olofsson",
   "code" : "//redFrik april'06 - title generation techniques\r\n//osx only\r\n//please give credit if you use any of these in your code\r\n\r\n//----------\r\n~file= FileReader.read(\"/usr/share/dict/words\");\t//will take a little while to load\r\n(\r\n~fileFunc= {\r\n\tvar b, c;\r\n\tb= ~file.choose[0];\r\n\tc= ~file.choose[0];\r\n\tb= b[0].toUpper++b.copyRange(1, b.size-1);\r\n\tc= c[0].toUpper++c.copyRange(1, c.size-1);\r\n\t(c++b).join\r\n};\r\n)\r\n10.do{~fileFunc.value.postln};\"\"\r\n\r\n//----------\r\n~file= FileReader.read(\"/usr/share/dict/web2a\");\r\n(\r\n~fileFunc= {\r\n\tvar b, c;\r\n\tb= ~file.choose[0];\r\n\tc= ~file.choose[0];\r\n\tb= b[0].toUpper++b.copyRange(1, b.size-1);\r\n\tc= c[0].toUpper++c.copyRange(1, c.size-1);\r\n\t(c++b).join\r\n};\r\n)\r\n10.do{~fileFunc.value.postln};\"\"\r\n\r\n//----------\r\n~file= FileReader.read(\"/usr/share/dict/web2\");\r\n(\r\n~fileFunc= {\r\n\tvar b, c;\r\n\tb= ~file.choose[0];\r\n\tc= ~file.choose[0];\r\n\tb= b[0].toUpper++b.copyRange(1, b.size-1);\r\n\tc= c[0].toUpper++c.copyRange(1, c.size-1);\r\n\t(c++b).join\r\n};\r\n)\r\n10.do{~fileFunc.value.postln};\"\"\r\n\r\n//----------\r\n~file= FileReader.read(\"/usr/share/dict/propernames\");\r\n(\r\n~fileFunc= {\r\n\tvar b, c;\r\n\tb= ~file.choose[0];\r\n\tc= ~file.choose[0];\r\n\tb= b[0].toUpper++b.copyRange(1, b.size-1);\r\n\tc= c[0].toUpper++c.copyRange(1, c.size-1);\r\n\t(c++b).join\r\n};\r\n)\r\n10.do{~fileFunc.value.postln};\"\"\r\n\r\n//----------\r\n~file= FileReader.read(\"/usr/share/dict/connectives\");\r\n(\r\n~fileFunc= {\r\n\tvar b, c;\r\n\tb= ~file.choose[0];\r\n\tc= ~file.choose[0];\r\n\tb= b[0].toUpper++b.copyRange(1, b.size-1);\r\n\tc= c[0].toUpper++c.copyRange(1, c.size-1);\r\n\t(c++b).join\r\n};\r\n)\r\n10.do{~fileFunc.value.postln};\"\"",
   "id" : "1-4Vz",
   "is_private" : null,
   "labels" : [
      "random",
      "tool"
   ]
}
