wikipedia-vandalism_detection 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE.txt +4 -0
  5. data/README.md +265 -0
  6. data/Rakefile +12 -0
  7. data/lib/java/LibSVM.jar +0 -0
  8. data/lib/java/SMOTE.jar +0 -0
  9. data/lib/java/balancedRandomForest.jar +0 -0
  10. data/lib/java/diffutils-1.3.0.jar +0 -0
  11. data/lib/java/libsvm.jar +0 -0
  12. data/lib/java/oneClassClassifier.jar +0 -0
  13. data/lib/java/realAdaBoost.jar +0 -0
  14. data/lib/java/swc-engine-1.1.0-jar-with-dependencies.jar +0 -0
  15. data/lib/java/sweble-wikitext-extractor.jar +0 -0
  16. data/lib/weka/classifiers/functions/lib_svm.rb +15 -0
  17. data/lib/weka/classifiers/meta/one_class_classifier.rb +25 -0
  18. data/lib/weka/classifiers/meta/real_ada_boost.rb +17 -0
  19. data/lib/weka/classifiers/trees/balanced_random_forest.rb +18 -0
  20. data/lib/weka/filters/supervised/instance/smote.rb +22 -0
  21. data/lib/wikipedia.rb +51 -0
  22. data/lib/wikipedia/vandalism_detection.rb +30 -0
  23. data/lib/wikipedia/vandalism_detection/algorithms.rb +18 -0
  24. data/lib/wikipedia/vandalism_detection/algorithms/kullback_leibler_divergence.rb +69 -0
  25. data/lib/wikipedia/vandalism_detection/classifier.rb +186 -0
  26. data/lib/wikipedia/vandalism_detection/configuration.rb +321 -0
  27. data/lib/wikipedia/vandalism_detection/diff.rb +27 -0
  28. data/lib/wikipedia/vandalism_detection/edit.rb +75 -0
  29. data/lib/wikipedia/vandalism_detection/evaluator.rb +606 -0
  30. data/lib/wikipedia/vandalism_detection/exceptions.rb +40 -0
  31. data/lib/wikipedia/vandalism_detection/feature_calculator.rb +89 -0
  32. data/lib/wikipedia/vandalism_detection/features.rb +67 -0
  33. data/lib/wikipedia/vandalism_detection/features/all_wordlists_frequency.rb +23 -0
  34. data/lib/wikipedia/vandalism_detection/features/all_wordlists_impact.rb +22 -0
  35. data/lib/wikipedia/vandalism_detection/features/anonymity.rb +19 -0
  36. data/lib/wikipedia/vandalism_detection/features/anonymity_previous.rb +29 -0
  37. data/lib/wikipedia/vandalism_detection/features/article_size.rb +18 -0
  38. data/lib/wikipedia/vandalism_detection/features/bad_frequency.rb +23 -0
  39. data/lib/wikipedia/vandalism_detection/features/bad_impact.rb +21 -0
  40. data/lib/wikipedia/vandalism_detection/features/base.rb +54 -0
  41. data/lib/wikipedia/vandalism_detection/features/biased_frequency.rb +23 -0
  42. data/lib/wikipedia/vandalism_detection/features/biased_impact.rb +22 -0
  43. data/lib/wikipedia/vandalism_detection/features/blanking.rb +25 -0
  44. data/lib/wikipedia/vandalism_detection/features/character_diversity.rb +25 -0
  45. data/lib/wikipedia/vandalism_detection/features/character_sequence.rb +19 -0
  46. data/lib/wikipedia/vandalism_detection/features/comment_bad_frequency.rb +22 -0
  47. data/lib/wikipedia/vandalism_detection/features/comment_biased_frequency.rb +22 -0
  48. data/lib/wikipedia/vandalism_detection/features/comment_length.rb +17 -0
  49. data/lib/wikipedia/vandalism_detection/features/comment_markup_frequency.rb +27 -0
  50. data/lib/wikipedia/vandalism_detection/features/comment_pronoun_frequency.rb +22 -0
  51. data/lib/wikipedia/vandalism_detection/features/comment_sex_frequency.rb +22 -0
  52. data/lib/wikipedia/vandalism_detection/features/comment_vulgarism_frequency.rb +22 -0
  53. data/lib/wikipedia/vandalism_detection/features/compressibility.rb +27 -0
  54. data/lib/wikipedia/vandalism_detection/features/contains_base.rb +18 -0
  55. data/lib/wikipedia/vandalism_detection/features/copyedit.rb +18 -0
  56. data/lib/wikipedia/vandalism_detection/features/digit_ratio.rb +24 -0
  57. data/lib/wikipedia/vandalism_detection/features/edits_per_user.rb +65 -0
  58. data/lib/wikipedia/vandalism_detection/features/emoticons_frequency.rb +27 -0
  59. data/lib/wikipedia/vandalism_detection/features/emoticons_impact.rb +29 -0
  60. data/lib/wikipedia/vandalism_detection/features/frequency_base.rb +20 -0
  61. data/lib/wikipedia/vandalism_detection/features/impact_base.rb +22 -0
  62. data/lib/wikipedia/vandalism_detection/features/inserted_character_distribution.rb +22 -0
  63. data/lib/wikipedia/vandalism_detection/features/inserted_external_links.rb +18 -0
  64. data/lib/wikipedia/vandalism_detection/features/inserted_internal_links.rb +18 -0
  65. data/lib/wikipedia/vandalism_detection/features/inserted_size.rb +20 -0
  66. data/lib/wikipedia/vandalism_detection/features/inserted_words.rb +18 -0
  67. data/lib/wikipedia/vandalism_detection/features/longest_word.rb +20 -0
  68. data/lib/wikipedia/vandalism_detection/features/markup_frequency.rb +27 -0
  69. data/lib/wikipedia/vandalism_detection/features/markup_impact.rb +27 -0
  70. data/lib/wikipedia/vandalism_detection/features/non_alphanumeric_ratio.rb +24 -0
  71. data/lib/wikipedia/vandalism_detection/features/personal_life.rb +18 -0
  72. data/lib/wikipedia/vandalism_detection/features/pronoun_frequency.rb +23 -0
  73. data/lib/wikipedia/vandalism_detection/features/pronoun_impact.rb +21 -0
  74. data/lib/wikipedia/vandalism_detection/features/removed_all_wordlists_frequency.rb +23 -0
  75. data/lib/wikipedia/vandalism_detection/features/removed_bad_frequency.rb +23 -0
  76. data/lib/wikipedia/vandalism_detection/features/removed_biased_frequency.rb +23 -0
  77. data/lib/wikipedia/vandalism_detection/features/removed_character_distribution.rb +22 -0
  78. data/lib/wikipedia/vandalism_detection/features/removed_emoticons_frequency.rb +27 -0
  79. data/lib/wikipedia/vandalism_detection/features/removed_markup_frequency.rb +28 -0
  80. data/lib/wikipedia/vandalism_detection/features/removed_pronoun_frequency.rb +23 -0
  81. data/lib/wikipedia/vandalism_detection/features/removed_sex_frequency.rb +23 -0
  82. data/lib/wikipedia/vandalism_detection/features/removed_size.rb +20 -0
  83. data/lib/wikipedia/vandalism_detection/features/removed_vulgarism_frequency.rb +23 -0
  84. data/lib/wikipedia/vandalism_detection/features/removed_words.rb +18 -0
  85. data/lib/wikipedia/vandalism_detection/features/replacement_similarity.rb +22 -0
  86. data/lib/wikipedia/vandalism_detection/features/reverted.rb +18 -0
  87. data/lib/wikipedia/vandalism_detection/features/revisions_character_distribution.rb +21 -0
  88. data/lib/wikipedia/vandalism_detection/features/same_editor.rb +29 -0
  89. data/lib/wikipedia/vandalism_detection/features/sex_frequency.rb +23 -0
  90. data/lib/wikipedia/vandalism_detection/features/sex_impact.rb +21 -0
  91. data/lib/wikipedia/vandalism_detection/features/size_increment.rb +22 -0
  92. data/lib/wikipedia/vandalism_detection/features/size_ratio.rb +26 -0
  93. data/lib/wikipedia/vandalism_detection/features/term_frequency.rb +25 -0
  94. data/lib/wikipedia/vandalism_detection/features/time_interval.rb +31 -0
  95. data/lib/wikipedia/vandalism_detection/features/time_of_day.rb +22 -0
  96. data/lib/wikipedia/vandalism_detection/features/upper_case_ratio.rb +24 -0
  97. data/lib/wikipedia/vandalism_detection/features/upper_case_words_ratio.rb +31 -0
  98. data/lib/wikipedia/vandalism_detection/features/upper_to_lower_case_ratio.rb +24 -0
  99. data/lib/wikipedia/vandalism_detection/features/user_reputation.rb +38 -0
  100. data/lib/wikipedia/vandalism_detection/features/vulgarism_frequency.rb +23 -0
  101. data/lib/wikipedia/vandalism_detection/features/vulgarism_impact.rb +22 -0
  102. data/lib/wikipedia/vandalism_detection/features/weekday.rb +21 -0
  103. data/lib/wikipedia/vandalism_detection/features/words_increment.rb +22 -0
  104. data/lib/wikipedia/vandalism_detection/instances.rb +130 -0
  105. data/lib/wikipedia/vandalism_detection/page.rb +88 -0
  106. data/lib/wikipedia/vandalism_detection/page_parser.rb +52 -0
  107. data/lib/wikipedia/vandalism_detection/revision.rb +69 -0
  108. data/lib/wikipedia/vandalism_detection/revision_parser.rb +43 -0
  109. data/lib/wikipedia/vandalism_detection/test_dataset.rb +367 -0
  110. data/lib/wikipedia/vandalism_detection/text.rb +18 -0
  111. data/lib/wikipedia/vandalism_detection/training_dataset.rb +303 -0
  112. data/lib/wikipedia/vandalism_detection/version.rb +5 -0
  113. data/lib/wikipedia/vandalism_detection/wikitext_extractor.rb +80 -0
  114. data/lib/wikipedia/vandalism_detection/word_lists.rb +19 -0
  115. data/lib/wikipedia/vandalism_detection/word_lists/bad.rb +12 -0
  116. data/lib/wikipedia/vandalism_detection/word_lists/biased.rb +21 -0
  117. data/lib/wikipedia/vandalism_detection/word_lists/emoticons.rb +22 -0
  118. data/lib/wikipedia/vandalism_detection/word_lists/markup.rb +12 -0
  119. data/lib/wikipedia/vandalism_detection/word_lists/pronouns.rb +15 -0
  120. data/lib/wikipedia/vandalism_detection/word_lists/sex.rb +12 -0
  121. data/lib/wikipedia/vandalism_detection/word_lists/vulgarism.rb +97 -0
  122. data/spec/factories/edit.rb +20 -0
  123. data/spec/factories/page.rb +13 -0
  124. data/spec/factories/revision.rb +51 -0
  125. data/spec/resources/config/config.yml +35 -0
  126. data/spec/resources/corpora/test/edits.csv +8 -0
  127. data/spec/resources/corpora/test/ground-truth.txt +3 -0
  128. data/spec/resources/corpora/test/revisions/part-1/326471754.txt +199 -0
  129. data/spec/resources/corpora/test/revisions/part-1/326873205.txt +137 -0
  130. data/spec/resources/corpora/test/revisions/part-1/328774035.txt +162 -0
  131. data/spec/resources/corpora/test/revisions/part-2/307084144.txt +137 -0
  132. data/spec/resources/corpora/test/revisions/part-2/326978767.txt +199 -0
  133. data/spec/resources/corpora/test/revisions/part-2/328774110.txt +162 -0
  134. data/spec/resources/corpora/training/annotations.csv +7 -0
  135. data/spec/resources/corpora/training/edits.csv +7 -0
  136. data/spec/resources/corpora/training/revisions/part-1/326471754.txt +199 -0
  137. data/spec/resources/corpora/training/revisions/part-1/326873205.txt +137 -0
  138. data/spec/resources/corpora/training/revisions/part-1/328774035.txt +162 -0
  139. data/spec/resources/corpora/training/revisions/part-2/307084144.txt +137 -0
  140. data/spec/resources/corpora/training/revisions/part-2/326978767.txt +199 -0
  141. data/spec/resources/corpora/training/revisions/part-2/328774110.txt +162 -0
  142. data/spec/resources/page_with_redirects.xml +85 -0
  143. data/spec/resources/redirect_page.xml +59 -0
  144. data/spec/resources/revision_simplified.xml +13 -0
  145. data/spec/resources/sample_revision.txt +137 -0
  146. data/spec/resources/sample_revision_clean_text.txt +1 -0
  147. data/spec/resources/sample_revision_plain_text.txt +183 -0
  148. data/spec/resources/vandalism_on_wikipedia.xml +234 -0
  149. data/spec/resources/vandalism_on_wikipedia_simplified.xml +119 -0
  150. data/spec/resources/wikipedia_tokens.txt +30 -0
  151. data/spec/spec_helper.rb +22 -0
  152. data/spec/support/macros/file_reading.rb +7 -0
  153. data/spec/support/macros/test_configuration.rb +71 -0
  154. data/spec/vandalism_detection/algorithms/kullback_leibler_divergence_spec.rb +36 -0
  155. data/spec/vandalism_detection/classifier_spec.rb +317 -0
  156. data/spec/vandalism_detection/configuration_spec.rb +517 -0
  157. data/spec/vandalism_detection/diff_spec.rb +40 -0
  158. data/spec/vandalism_detection/edit_spec.rb +137 -0
  159. data/spec/vandalism_detection/evaluator_spec.rb +671 -0
  160. data/spec/vandalism_detection/feature_calculator_spec.rb +128 -0
  161. data/spec/vandalism_detection/features/all_wordlists_frequency_spec.rb +36 -0
  162. data/spec/vandalism_detection/features/all_wordlists_impact_spec.rb +58 -0
  163. data/spec/vandalism_detection/features/anonymity_previous_spec.rb +61 -0
  164. data/spec/vandalism_detection/features/anonymity_spec.rb +23 -0
  165. data/spec/vandalism_detection/features/article_size_spec.rb +35 -0
  166. data/spec/vandalism_detection/features/bad_frequency_spec.rb +36 -0
  167. data/spec/vandalism_detection/features/bad_impact_spec.rb +59 -0
  168. data/spec/vandalism_detection/features/base_spec.rb +49 -0
  169. data/spec/vandalism_detection/features/biased_frequency_spec.rb +36 -0
  170. data/spec/vandalism_detection/features/biased_impact_spec.rb +58 -0
  171. data/spec/vandalism_detection/features/blanking_spec.rb +38 -0
  172. data/spec/vandalism_detection/features/character_diversity_spec.rb +35 -0
  173. data/spec/vandalism_detection/features/character_sequence_spec.rb +37 -0
  174. data/spec/vandalism_detection/features/comment_bad_frequency_spec.rb +34 -0
  175. data/spec/vandalism_detection/features/comment_biased_frequency_spec.rb +34 -0
  176. data/spec/vandalism_detection/features/comment_length_spec.rb +27 -0
  177. data/spec/vandalism_detection/features/comment_markup_frequency_spec.rb +34 -0
  178. data/spec/vandalism_detection/features/comment_pronoun_frequency_spec.rb +34 -0
  179. data/spec/vandalism_detection/features/comment_sex_frequency_spec.rb +34 -0
  180. data/spec/vandalism_detection/features/comment_vulgarism_frequency_spec.rb +34 -0
  181. data/spec/vandalism_detection/features/compressibility_spec.rb +42 -0
  182. data/spec/vandalism_detection/features/contains_base_spec.rb +33 -0
  183. data/spec/vandalism_detection/features/copyedit_spec.rb +33 -0
  184. data/spec/vandalism_detection/features/digit_ratio_spec.rb +35 -0
  185. data/spec/vandalism_detection/features/edits_per_user_spec.rb +49 -0
  186. data/spec/vandalism_detection/features/emoticons_frequency_spec.rb +36 -0
  187. data/spec/vandalism_detection/features/emoticons_impact_spec.rb +51 -0
  188. data/spec/vandalism_detection/features/frequency_base_spec.rb +26 -0
  189. data/spec/vandalism_detection/features/impact_base_spec.rb +41 -0
  190. data/spec/vandalism_detection/features/inserted_character_distribution_spec.rb +46 -0
  191. data/spec/vandalism_detection/features/inserted_external_links_spec.rb +35 -0
  192. data/spec/vandalism_detection/features/inserted_internal_links_spec.rb +35 -0
  193. data/spec/vandalism_detection/features/inserted_size_spec.rb +35 -0
  194. data/spec/vandalism_detection/features/inserted_words_spec.rb +35 -0
  195. data/spec/vandalism_detection/features/longest_word_spec.rb +35 -0
  196. data/spec/vandalism_detection/features/markup_frequency_spec.rb +36 -0
  197. data/spec/vandalism_detection/features/markup_impact_spec.rb +59 -0
  198. data/spec/vandalism_detection/features/non_alphanumeric_ratio_spec.rb +35 -0
  199. data/spec/vandalism_detection/features/personal_life_spec.rb +26 -0
  200. data/spec/vandalism_detection/features/pronoun_frequency_spec.rb +36 -0
  201. data/spec/vandalism_detection/features/pronoun_impact_spec.rb +59 -0
  202. data/spec/vandalism_detection/features/removed_all_wordlists_frequency_spec.rb +36 -0
  203. data/spec/vandalism_detection/features/removed_bad_frequency_spec.rb +36 -0
  204. data/spec/vandalism_detection/features/removed_biased_frequency_spec.rb +36 -0
  205. data/spec/vandalism_detection/features/removed_character_distribution_spec.rb +46 -0
  206. data/spec/vandalism_detection/features/removed_emoticons_frequency_spec.rb +36 -0
  207. data/spec/vandalism_detection/features/removed_markup_frequency_spec.rb +36 -0
  208. data/spec/vandalism_detection/features/removed_pronoun_frequency_spec.rb +36 -0
  209. data/spec/vandalism_detection/features/removed_sex_frequency_spec.rb +36 -0
  210. data/spec/vandalism_detection/features/removed_size_spec.rb +35 -0
  211. data/spec/vandalism_detection/features/removed_vulgarism_frequency_spec.rb +36 -0
  212. data/spec/vandalism_detection/features/removed_words_spec.rb +35 -0
  213. data/spec/vandalism_detection/features/replacement_similarity_spec.rb +44 -0
  214. data/spec/vandalism_detection/features/reverted_spec.rb +28 -0
  215. data/spec/vandalism_detection/features/revisions_character_distribution_spec.rb +46 -0
  216. data/spec/vandalism_detection/features/same_editor_spec.rb +60 -0
  217. data/spec/vandalism_detection/features/sex_frequency_spec.rb +36 -0
  218. data/spec/vandalism_detection/features/sex_impact_spec.rb +59 -0
  219. data/spec/vandalism_detection/features/size_increment_spec.rb +35 -0
  220. data/spec/vandalism_detection/features/size_ratio_spec.rb +57 -0
  221. data/spec/vandalism_detection/features/term_frequency_spec.rb +38 -0
  222. data/spec/vandalism_detection/features/time_interval_spec.rb +50 -0
  223. data/spec/vandalism_detection/features/time_of_day_spec.rb +22 -0
  224. data/spec/vandalism_detection/features/upper_case_ratio_spec.rb +35 -0
  225. data/spec/vandalism_detection/features/upper_case_words_ratio_spec.rb +37 -0
  226. data/spec/vandalism_detection/features/upper_to_lower_case_ratio_spec.rb +35 -0
  227. data/spec/vandalism_detection/features/user_reputation_spec.rb +52 -0
  228. data/spec/vandalism_detection/features/vulgarism_frequency_spec.rb +36 -0
  229. data/spec/vandalism_detection/features/vulgarism_impact_spec.rb +58 -0
  230. data/spec/vandalism_detection/features/weekday_spec.rb +22 -0
  231. data/spec/vandalism_detection/features/words_increment_spec.rb +35 -0
  232. data/spec/vandalism_detection/instances_spec.rb +156 -0
  233. data/spec/vandalism_detection/page_parser_spec.rb +184 -0
  234. data/spec/vandalism_detection/page_spec.rb +135 -0
  235. data/spec/vandalism_detection/revision_parser_spec.rb +53 -0
  236. data/spec/vandalism_detection/revision_spec.rb +115 -0
  237. data/spec/vandalism_detection/test_dataset_spec.rb +231 -0
  238. data/spec/vandalism_detection/text_spec.rb +29 -0
  239. data/spec/vandalism_detection/training_dataset_spec.rb +264 -0
  240. data/spec/vandalism_detection/wikitext_extractor_spec.rb +72 -0
  241. data/spec/weka/classifiers/functions/lib_svm_spec.rb +38 -0
  242. data/spec/weka/classifiers/meta/one_class_classifier_spec.rb +76 -0
  243. data/spec/weka/classifiers/meta/real_ada_boost_spec.rb +40 -0
  244. data/spec/weka/classifiers/trees/balanced_random_forest_spec.rb +40 -0
  245. data/spec/weka/filters/supervised/instance/smote_spec.rb +6 -0
  246. data/wikipedia-vandalism_detection.gemspec +30 -0
  247. metadata +512 -0
@@ -0,0 +1,22 @@
1
+ module Wikipedia
2
+ module VandalismDetection
3
+ module WordLists
4
+
5
+ EMOTICONS =
6
+ [
7
+ :':\)', :':p', :':\(', :';\)', :':D', :';D', :';P', :';p', :':\-\)', :':\-\(', :';\-\)', :':\-D', :':\-p',
8
+ :':\-P', :'8\-\)', :'8\)', :'\^\^', :'\*_\*', :'\^_\^', :':\-I', :':\-X', :':\-x', :'X\-p', :'X\-P',
9
+ :':\-\]', :'\^\.\^', :':\*', :':\-\*', :'XD', :'X\-D', :'8\-D', :'8D', :':\-O', :':\-o', :':\-\|',
10
+ :'X\-\(', :'X\(', :'\-_\-', :':o\)', :':O\)', :'B\-\)', :':O', :':o', :':\-s', :':\-S', :':\-\/',
11
+ :':\-\\', :'T_T', :':\*\(', :':\*\-\(', :':\(\(', :'\*\-\*', :':\-\[',:':\->', :':\|', :':\-\|', :':\]',
12
+ :':\[', :'\/:\(', :'\\:\(', :':\-$', :':$', :':\-6', :':\-9', :'@_@', :'<3', :'\|\-D', :':0', :':\-0',
13
+ :'o_O', :'oO', :'\(\-:', :'\(\-;', :'\(:', :'\):', :'\)\-:', :'\(;', :'\(y\)', :'\(\.\)\(\.\)', :'O_O',
14
+ :'0_0', :'8\-\[', :'8\-\]', :'8\[', :'8\]', :'8\-\(', :'8\(', :':\-', :'%\)', :'%\-\)', :'8\|', :'8\-\|',
15
+ :'=\)', :':\]', :':>', :':c\)', :'\[:', :'<:', :'c:', :'\(x', :'\(o:', :'\(c:', :'D:', :':\'\(', :':\'C',
16
+ :';\(', :';o\)', :'\(o;', :':b', :':p', :'=P', :':P', :'dx', :'xP', :'d\-:', :'d:', :'q:', :'d=', :'d;',
17
+ :'c\(:', :'=D', :'=\-D', :'=O', :'=o', :'=0', :'o=', :'O=', :'0=', :'\^_~', :'>_<', :'~_~', :'>:', :':<',
18
+ :'\(Y\)', :'\(=', :'\)=', :'=\(', :'=\[, :=\]', :'\[=', :'\]='
19
+ ]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ module Wikipedia
2
+ module VandalismDetection
3
+ module WordLists
4
+
5
+ MARKUP =
6
+ [
7
+ :'\{\{', :'\[\[', :infobox, :category, :defaultsort, :'<ref>', :cite, :'__toc__', :'__forcetoc__',
8
+ :defaultsort, :reflist
9
+ ]
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ module Wikipedia
2
+ module VandalismDetection
3
+ module WordLists
4
+
5
+ PRONOUNS =
6
+ [
7
+ :i, :me, :myself, :mine, :my, :we, :us,
8
+ :ourselves, :ourself, :ours, :our, :you, :yourself, :yours,
9
+ :your, :thou, :thee, :thyself, :thine, :thy, :yourselves,
10
+ :"y'all", :youse, :"you-uns", :"y'all", :youse, :yous, :yis,
11
+ :yourselves, :"y'all's", :selves, :"yous's"
12
+ ]
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ module Wikipedia
2
+ module VandalismDetection
3
+ module WordLists
4
+
5
+ SEX =
6
+ [
7
+ :vagina, :sex, :anal, :penis, :breast, :breasts, :buttocks, :sodomy, :sodomized, :erect, :nipple, :nipples,
8
+ :vibrator, :vibrators,:dildo, :dildos
9
+ ]
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,97 @@
1
+ module Wikipedia
2
+ module VandalismDetection
3
+ module WordLists
4
+
5
+ # This list is taken from https://github.com/snipe/banbuilder and can be downloaded under
6
+ # https://github.com/snipe/banbuilder/blob/master/word-dbs/wordlist.csv
7
+
8
+ VULGARISM =
9
+ [
10
+ :"$#!+", :"$1ut", :"$h1t", :"$hit", :"$lut", :"'ho", :"'hobag", :"a$$", :anus, :ass, :assmunch,
11
+ :b1tch, :ballsack, :bastard, :beaner, :beastiality, :biatch, :beeyotch, :bitchy,
12
+ :blow, :blowjob, :bollock, :bollocks, :bollok, :boner, :boob, :bugger,
13
+ :buttplug, :"c-0-c-k", :"c-o-c-k", :"c-u-n-t", :"c.0.c.k", :"c.o.c.k.", :"c.u.n.", :jerk, :jackoff,
14
+ :jackhole, :j3rk0ff, :homo, :hom0, :hobag, :hell, :h0mo, :h0m0, :goddamn, :goddammit,
15
+ :godamnit, :ghey, :ghay, :gfy, :gay, :fudgepacker, :fuckwad,
16
+ :fucktard, :fuckoff, :fucker, :"fuck-tard", :fuck, :fellatio, :fellate, :felching,
17
+ :felcher, :felch, :fartknocker, :fart, :fannybandit, :fanny, :faggot, :fagg, :fag,
18
+ :"f.u.c.k", :"f-u-c-k", :dyke, :douchebag, :douche, :douch3, :doosh, :dike,
19
+ :dick, :damnit, :damn, :dammit, :d1ldo, :d1ld0, :d1ck, :d0uche, :d0uch3, :cunt, :cumstain,
20
+ :cum, :crap, :coon, :cock, :clitoris, :clit, :cl1t, :cawk, :c0ck, :jerk0ff, :jerkoff, :jizz,
21
+ :knobend, :labia, :lmfao, :moolie, :muff, :nigga, :nigger, :"p.u.s.s.y.",
22
+ :piss, :"piss-off", :pissoff, :prick, :pube, :pussy, :queer, :retard, :retarded,
23
+ :"s-h-1-t", :"s-h-i-t", :"s.h.i.t.", :scrotum, :sh1t, :shit, :slut, :smegma, :t1t, :tard,
24
+ :terd, :tit, :tits, :titties, :turd, :twat, :vag, :wank, :wetback, :whore,
25
+ :whoreface, :'f*ck', :"sh*t", :"pu$$y", :"p*ssy", :diligaf, :wtf, :stfu, :"fu*ck", :fack, :shite,
26
+ :fxck, :"sh!t", :@sshole, :assh0le, :"assho!e", :"a$$hole", :"a$$h0le", :"a$$h0!e", :"a$$h01e", :assho1e,
27
+ :wh0re, :"f@g", :"f@gg0t", :"f@ggot", :"motherf*cker", :mofo, :cuntlicker, :cuntface, :dickbag,
28
+ :cockknocker, :beatch, :fucknut, :nucking, :futs, :mams,
29
+ :cunny, :quim, :clitty, :kike, :spic, :wop,
30
+ :chink, :humper, :feltch, :feltcher, :fvck, :ahole, :nads, :spick, :douchey,
31
+ :bullturds, :gonads, :bitch, :butt, :fellatio, :lmao, :"s-o-b", :spunk, :he11, :jizm, :jism,
32
+ :bukkake, :shiz, :wigger, :gook, :ritard, :reetard, :masterbate, :masturbate, :goatse,
33
+ :masterbating, :masturbating, :hitler, :nazi, :tubgirl, :gtfo, :foad, :"r-tard", :rtard, :hoor,
34
+ :"g-spot", :gspot, :vulva, :assmaster, :viagra, :phuck, :frack, :fuckwit, :assbang, :assbanged,
35
+ :assbangs, :asshole, :assholes, :asswipe, :asswipes, :b1tch, :bastards, :bitched, :bitches,
36
+ :boners, :bullshit, :bullshits, :bullshitted, :cameltoe,
37
+ :chinc, :chincs, :chink, :chode, :chodes, :clit, :clits, :cocks, :coons, :cumming, :cunts,
38
+ :d1ck, :dickhead, :dickheads, :"doggie-style", :douchebags, :dumass, :dumbass,
39
+ :dumbasses, :dykes, :faggit, :fags, :fucked, :fucker, :fuckface, :fucks, :godamnit,
40
+ :gooks, :humped, :humping, :jackass, :jap, :japs, :jerk, :jizzed, :kikes, :knobend,
41
+ :kooch, :kooches, :kootch, :fuckers, :motherfucking, :niggah, :niggas,
42
+ :niggers, :"p.u.s.s.y.", :pussies, :queers, :rim,
43
+ :s0b, :shitface, :shithead, :shits, :shitted, :"s.o.b.", :spik,
44
+ :spiks, :twats, :whack, :whores, :zoophile, :"m-fucking", :mthrfucking, :muthrfucking,
45
+ :mutherfucking, :mutherfucker, :mtherfucker, :mthrfucker, :"mthrf*cker", :whorehopper,
46
+ :copulator, :whoralicious, :whorealicious, :aeolus,
47
+ :analprobe, :areola, :areole, :aryan, :arian, :asses, :assfuck, :azazel, :baal, :babes,
48
+ :bang, :banger, :barf, :bawdy, :beardedclam, :beater, :beaver, :beer, :bigtits, :bimbo,
49
+ :blew, :blow, :blowjobs, :blowup, :bod, :bodily, :boink, :bone, :boned, :bong, :boobies,
50
+ :boobs, :booby, :booger, :bookie, :booky, :bootee, :bootie, :booty, :booze, :boozer,
51
+ :boozy, :bosom, :bosomy, :bowel, :bowels, :bra, :brassiere, :bung, :babe,
52
+ :bush, :buttfuck, :cocaine, :kinky, :klan, :panties, :pedophile, :pedophilia, :pedophiliac,
53
+ :punkass, :queaf, :rape, :scantily, :essohbee, :shithouse, :smut, :snatch, :toots,
54
+ :doggie, :anorexia, :bulimia, :bulimiic, :burp, :busty, :buttfucker, :caca, :cahone,
55
+ :carnal, :carpetmuncher, :cervix, :climax, :cocain, :cocksucker, :coital, :coke, :commie,
56
+ :condom, :corpse, :coven, :crabs, :crack, :crackwhore, :crappy, :cuervo, :cummin, :cumshot,
57
+ :cumshots, :cunnilingus, :dago, :dagos, :damned, :"dick-ish", :dickish, :dickweed, :anorexic,
58
+ :prostitute, :marijuana, :lsd, :pcp, :diddle, :"dawgie-style", :dimwit, :dingle, :doofus,
59
+ :dopey, :douche, :drunk, :dummy, :ejaculate, :enlargement, :erect, :erotic, :exotic, :extacy,
60
+ :extasy, :faerie, :faery, :fagged, :fagot, :fairy, :fisted, :fisting, :fisty, :floozy,
61
+ :fondle, :foobar, :foreskin, :frigg, :frigga, :fubar, :fucking, :fuckup, :ganja, :gays,
62
+ :glans, :godamn, :goddam, :goldenshower, :gonad, :gonads, :handjob, :hebe, :hemp, :heroin,
63
+ :herpes, :hijack, :hiv, :homey, :honky, :hooch, :hookah, :hooker, :hootch, :hooter, :hooters,
64
+ :hump, :hussy, :hymen, :inbred, :incest, :injun, :jerked, :jiz, :jizm, :horny, :junkie,
65
+ :junky, :kill, :kkk, :kraut, :kyke, :lech, :leper, :lesbians, :lesbos, :lez, :lezbian,
66
+ :lezbians, :lezbo, :lezbos, :lezzie, :lezzies, :lezzy, :loin, :loins, :lube, :lust, :lusty,
67
+ :massa, :masterbation, :masturbation, :maxi, :menses, :menstruate, :menstruation, :meth,
68
+ :molest, :moron, :motherfucka, :motherfucker, :murder, :muthafucker, :nad, :naked, :napalm,
69
+ :nappy, :nazism, :negro, :niggle, :nimrod, :ninny, :nooky, :nympho, :opiate, :opium,
70
+ :oral, :orally, :organ, :orgasm, :orgies, :orgy, :ovary, :ovum, :ovums, :paddy, :pantie,
71
+ :panty, :pastie, :pasty, :pecker, :pedo, :pee, :peepee, :penetrate, :penetration, :penial,
72
+ :penile, :perversion, :peyote, :phalli, :phallic, :pillowbiter, :pimp, :pinko, :pissed, :pms,
73
+ :polack, :porn, :porno, :pornography, :pot, :potty, :prig, :prude, :pubic, :pubis, :punky,
74
+ :puss, :queef, :queefing, :quife, :quicky, :racist, :racy, :raped, :raper, :rapist, :raunch, :rectal,
75
+ :rectum, :rectus, :reefer, :reich, :revue, :risque, :rum, :rump, :sadism, :sadist, :satan, :scag,
76
+ :schizo, :screw, :screwed, :scrog, :scrot, :scrote, :scrud, :scum, :seaman, :seamen, :seduce,
77
+ :semen, :sex_story, :sexual, :shithole, :shitter, :shitty, :"s*o*b", :sissy, :skag, :slave,
78
+ :sleaze, :sleazy, :sluts, :smutty, :sniper, :snuff, :sodom, :souse, :soused, :sperm, :spooge,
79
+ :stab, :steamy, :stiffy, :stoned, :strip, :stroke, :whacking, :suck, :sucked, :sucking,
80
+ :tampon, :tawdry, :teat, :teste, :testee, :testes, :testis, :thrust, :thug, :tinkle,
81
+ :titfuck, :titi, :titty, :whacked, :toke, :tramp, :trashy, :tush, :undies, :unwed,
82
+ :urinal, :urine, :uterus, :uzi, :valium, :virgin, :vixen, :vodka, :vomit, :voyeur, :vulgar,
83
+ :wad, :wazoo, :wedgie, :weed, :weenie, :weewee, :weiner, :weirdo, :wench, :whitey, :whiz,
84
+ :whored, :whorehouse, :whoring, :womb, :woody, :"x-rated", :xxx, :"b@lls", :yeasty, :yobbo,
85
+ :sumofabiatch, :"doggy-style", :doggy, :wang, :dong, :d0ng, :"w@ng", :wh0reface, :"wh0ref@ce",
86
+ :"wh0r3f@ce", :tittyfuck, :tittyfucker, :tittiefucker, :cockholster, :cockblock, :gai, :gey,
87
+ :faig, :faigt, :a55, :a55hole, :gae, :corksucker, :rumprammer, :slutdumper, :niggaz,
88
+ :muthafuckaz, :gigolo, :pussypounder, :herp, :herpy, :transsexual, :orgasmic,
89
+ :cunilingus, :anilingus, :dickdipper, :dickwhipper, :dicksipper, :dickripper, :dickflipper,
90
+ :dickzipper, :homoey, :queero, :freex, :cunthunter, :shamedame, :slutkiss, :shiteater,
91
+ :fuckass, :"fucka$$", :clitorus, :assfucker, :assfuckers, :dillweed, :cracker, :teabagging,
92
+ :shitt, :azz, :fuk, :fucknugget, :cuntlick, :"g@y", :"@ss", :beotch, :pussys, :'s***', :paedophile,
93
+ :pedophiles, :pedophile, :sucks, :licker, :lickers, :bitchface, :idiot, :tosser, :idiots, :tossers
94
+ ]
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,20 @@
1
+ FactoryGirl.define do
2
+
3
+ factory :edit, class: Wikipedia::VandalismDetection::Edit do
4
+ old_revision { FactoryGirl.build(:old_revision) }
5
+ new_revision { FactoryGirl.build(:new_revision) }
6
+ page_id nil
7
+ page_title nil
8
+
9
+ initialize_with { new(old_revision, new_revision, page_id: page_id, page_title: page_title) }
10
+ end
11
+
12
+ factory :anonymous_edit, class: Wikipedia::VandalismDetection::Edit do
13
+ old_revision { FactoryGirl.build(:old_revision) }
14
+ new_revision { FactoryGirl.build(:anonymous_revision) }
15
+ page_id nil
16
+ page_title nil
17
+
18
+ initialize_with { new(old_revision, new_revision, page_id: page_id, page_title: page_title) }
19
+ end
20
+ end
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+
3
+ factory :page, class: Wikipedia::VandalismDetection::Page do
4
+ id nil
5
+ title nil
6
+
7
+ after :build do |obj|
8
+ obj.add_revision FactoryGirl.build(:old_revision, contributor: 'User')
9
+ obj.add_revision FactoryGirl.build(:new_revision, contributor: 'User')
10
+ obj.add_revision FactoryGirl.build(:even_newer_revision, contributor: 'User')
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,51 @@
1
+ FactoryGirl.define do
2
+ factory :empty_revision, class: Wikipedia::VandalismDetection::Revision do |f|
3
+ f.id nil
4
+ f.parent_id nil
5
+ f.timestamp nil
6
+ f.text Wikipedia::VandalismDetection::Text.new
7
+ f.comment Wikipedia::VandalismDetection::Text.new
8
+ end
9
+
10
+ factory :old_revision, class: Wikipedia::VandalismDetection::Revision do |f|
11
+ f.id '1'
12
+ f.parent_id nil
13
+ f.timestamp nil
14
+ f.text Wikipedia::VandalismDetection::Text.new('text 1')
15
+ f.comment Wikipedia::VandalismDetection::Text.new
16
+ end
17
+
18
+ factory :new_revision, class: Wikipedia::VandalismDetection::Revision do |f|
19
+ f.id '2'
20
+ f.parent_id '1'
21
+ f.timestamp '2014-11-27T18:00:00Z'
22
+ f.text Wikipedia::VandalismDetection::Text.new('text 2')
23
+ f.comment Wikipedia::VandalismDetection::Text.new
24
+ end
25
+
26
+ factory :even_newer_revision, class: Wikipedia::VandalismDetection::Revision do |f|
27
+ f.id '3'
28
+ f.parent_id '2'
29
+ f.timestamp '2014-11-28T18:00:00Z'
30
+ f.text Wikipedia::VandalismDetection::Text.new('text 3')
31
+ f.comment Wikipedia::VandalismDetection::Text.new
32
+ end
33
+
34
+ factory :anonymous_revision, class: Wikipedia::VandalismDetection::Revision do |f|
35
+ f.id '2'
36
+ f.parent_id '1'
37
+ f.timestamp '2014-11-27T18:00:00Z'
38
+ f.text Wikipedia::VandalismDetection::Text.new('text 2')
39
+ f.comment Wikipedia::VandalismDetection::Text.new
40
+ f.contributor '127.0.0.1'
41
+ end
42
+
43
+ factory :registered_revision, class: Wikipedia::VandalismDetection::Revision do |f|
44
+ f.id '2'
45
+ f.parent_id '1'
46
+ f.timestamp '2014-11-27T18:00:00Z'
47
+ f.text Wikipedia::VandalismDetection::Text.new('text 2')
48
+ f.comment Wikipedia::VandalismDetection::Text.new
49
+ f.contributor '12345'
50
+ end
51
+ end
@@ -0,0 +1,35 @@
1
+ corpora:
2
+ base_directory: ../../../../spec/resources/corpora
3
+
4
+ training:
5
+ base_directory: training
6
+ annotations_file: annotations.csv
7
+ edits_file: edits.csv
8
+ revisions_directory: revisions
9
+
10
+ test:
11
+ base_directory: test
12
+ edits_file: edits.csv
13
+ revisions_directory: revisions
14
+ ground_truth_file: ground-truth.txt
15
+
16
+ output:
17
+ base_directory: ../../../../spec/resources/build
18
+ training:
19
+ index_file: training_index.yml
20
+ arff_file: training.arff
21
+ test:
22
+ index_file: test_index.yml
23
+ arff_file: test.arff
24
+ classification_file: classification.txt
25
+
26
+ features:
27
+ - anonymity
28
+ - character sequence
29
+ - comment length
30
+
31
+ classifier:
32
+ type: Trees::RandomForest
33
+ options: -I 10
34
+ cross-validation-fold: 2
35
+ training-data-options: unbalanced
@@ -0,0 +1,8 @@
1
+ "editid","editor","oldrevisionid","newrevisionid","diffurl","edittime","editcomment","articleid","articletitle"
2
+ 1641,"137.163.16.199",328774088,328774188,"http://en.wikipedia.org/w/index.php?diff=328774188&oldid=328774088","2009-11-30T10:23:13Z","/* Location */",100935,"Not annotated article"
3
+ 1642,"J04n",307084144,326873205,"http://en.wikipedia.org/w/index.php?diff=326873205&oldid=307084144","2009-11-20T04:42:24Z","Repairing links to disambiguation pages - [[Wikipedia:Disambiguation pages with links|You can help!]]",19490449,"The Soundstage Sessions"
4
+ 1643,"64.186.73.198",326471754,326978767,"http://en.wikipedia.org/w/index.php?diff=326978767&oldid=326471754","2009-11-20T19:32:23Z","/* Non-electric telephones */",2193804,"Invention of the telephone"
5
+ 1644,"64.186.73.198",326471754,326978767,"http://en.wikipedia.org/w/index.php?diff=326978767&oldid=326471754","2009-11-20T19:32:23Z","/* Non-electric telephones */",2193804,"Invention of the telephone"
6
+ 1647,"137.163.16.199",328774035,328774110,"http://en.wikipedia.org/w/index.php?diff=328774110&oldid=328774035","2009-11-30T10:23:13Z","/* Location */",100935,"Chinatown, Manhattan"
7
+ 1648,"137.163.16.199",328774035,328774110,"http://en.wikipedia.org/w/index.php?diff=328774110&oldid=328774035","2009-11-30T10:23:13Z","/* Location */",100935,"Chinatown, Manhattan"
8
+ 1649,"137.163.16.199",328774035,328774110,"http://en.wikipedia.org/w/index.php?diff=328774110&oldid=328774035","2009-11-30T10:23:13Z","/* Location */",100935,"Chinatown, Manhattan"
@@ -0,0 +1,3 @@
1
+ 307084144 326873205 R
2
+ 326471754 326978767 dunno
3
+ 328774035 328774110 V
@@ -0,0 +1,199 @@
1
+ [[Image:1876 Bell Speaking into Telephone.jpg|thumb|Bell speaking into prototype model of the telephone]]
2
+ The modern telephone is the culmination of work done by many individuals, all worthy of recognition for their contributions to the field. [[Alexander Graham Bell]] was the first to patent the telephone, an "apparatus for transmitting vocal or other sounds telegraphically", after experimenting with many primitive sound transmitters and receivers. However, the history of the invention of the [[telephone]] is a confusing collection of claims and counterclaims, made no less confusing by the many lawsuits which attempted to resolve the patent claims of several individuals.
3
+
4
+ ==Non-electric "telephones"==
5
+
6
+ According to a letter in the [[Peking Gazette]], a Chinese inventor created a speech transmitting device in 968<!-- 968 is not a typo. -->, which probably transported sound through ''speaking tubes'', or pipes.<!--Fact|vague and unreliable; "Kung-Foo-Whing" sounds made up, and probably is|date=October 2008; Note: uncited, possibly fictitious name removed from the article on 2009-06-04 --> [[Speaking tube]]s remained common and can still be found today in a variety of locations, including ships.
7
+
8
+ The string or "lover's" telephone has also been known for centuries. Comprising two [[diaphragm]]s connected by a taut string or wire, sound waves are carried as vibrations along the string or wire from one diaphragm to the other. The classic example is the [[tin can telephone]], a children's toy made by connecting the two ends of a string to the bottoms of two metal cans, paper cups or similar items.
9
+
10
+ ==Make and break transmitters and electro-magnetic receivers==
11
+ ===Innocenzo Manzetti===
12
+ [[Innocenzo Manzetti]] mooted the idea of a telephone as early as 1844, and may have made one in 1864, as an enhancement to an automaton built by him in 1849.
13
+
14
+ ===Charles Bourseul===
15
+ {{main|Charles Bourseul}}
16
+ In 1854 in the magazine [[L'Illustration]] (Paris) [[Charles Bourseul]], a French telegraphist, published a plan for conveying sounds and even speech by electricity.<ref>Coe, page 21.</ref> Bourseul's ideas were also published in ''Didaskalia'' (Frankfurt am Main) on [[September 28]] [[1854]].
17
+ "Suppose", he explained, “that a man speaks near a movable disc sufficiently flexible to lose none of the vibrations of the voice; that this disc alternately makes and breaks the currents from a battery: you may have at a distance another disc which will simultaneously execute the same vibrations.... It is certain that, in a more or less distant future, speech will be transmitted by electricity. I have made experiments in this direction; they are delicate and demand time and patience, but the approximations obtained promise a favourable result.”
18
+
19
+ ===Johann Philipp Reis===
20
+ {{main|Johann Philipp Reis}}
21
+ In 1860 [[Johann Philipp Reis]] produced a device which could transmit musical notes, and even a lisping sentence or two. The first sentence spoken on it was "Das Pferd frisst keinen Gurkensalat" (the horse doesn't eat cucumber salad). See [[Reis' telephone]] for a detailed description. The Reis transmitter was a make-break transmitter. That is, a needle attached to a diaphragm was alternately pressed against, and released from a contact as the sound moved the diaphragm. This make-or-break signaling was able to transmit tones, and some vowels, but since it did not follow the analog shape of the sound wave (the contact was pure digital, on or off) it could not transmit consonants, or complex sounds. The Reis transmitter was very difficult to operate, since the relative position of the needle and the contact were critical to the device's operation at all. This can be called a "telephone", since it did transmit sounds over distance, but is hardly a telephone in the modern sense, as it failed to transmit a good copy of any supplied sound. Reis' invention is best known then as the "musical telephone". Prior to 1947, the Reis device was tested by the British company Standard Telephones and Cables (STC). The results also confirmed it could faintly transmit and receive speech. At the time STC was bidding for a contract with Alexander Graham Bell's American Telephone and Telegraph Company, and the results were covered up by STC's chairman Sir Frank Gill to maintain Bell's reputation. <ref>[http://news.bbc.co.uk/1/hi/sci/tech/3253174.stm BBC NEWS | Science/Nature | Bell 'did not invent telephone']</ref>
22
+
23
+ === Antonio Meucci ===
24
+ {{main|Antonio Meucci}}
25
+
26
+ An early version of a voice communicating device was invented around 1854 by [[Antonio Meucci]], who called it a ''teletrofono'' (''telectrophone''). Pre-1875 evidence is lacking that it was an electromagnetic telephone.
27
+
28
+ The first American demonstration of Meucci's invention took place in [[Staten Island]], [[New York]] in 1854. In 1860, a description of it was reportedly published in an Italian-language New York newspaper, although no known copy of that newspaper issue or article survived to the present day. Meucci claimed to have invented a paired electro-magnetic transmitter and receiver, where the motion of a diaphragm modulated a signal in a coil by moving an electromagnet, although this was not mentioned in his [[Antonio Meucci#The_caveat|1871 U.S. patent caveat]]. A further discrepancy observed was that the device described in the 1871 caveat employed only a single conduction wire, with the telephone's transmitter-receivers being insulated from a 'ground return' path.
29
+
30
+ Meucci was also later credited with the early invention of inductive loading of telephone wires to increase long-distance signals. Unfortunately, serious burns from an accident, a lack of English, and poor business abilities resulted in Meucci failing to develop his inventions commercially in America. Meucci demonstrated some sort of instrument in 1849 in [[Havana, Cuba]], but the evidence is unclear if this was an electric telephone or a variant of a [[Tin can telephone|string telephone]] that used wire. Meucci has been further credited with invention of an anti-[[sidetone]] circuit. However, examination showed that his solution to sidetone was to maintain two separate telephone circuits, and thus use twice as many transmission wires. The anti-sidetone circuit later introduced by Bell Telephone instead cancelled sidetone through a feedback process.
31
+
32
+ An [[ADT Security Services|American District Telegraph]] (ADT) laboratory reportedly lost some of Meucci's working models, his wife reportedly disposed of others and Meucci, who sometimes lived on public assistance, chose not to renew his 1871 ''teletrofono'' [[patent caveat]] after 1874.
33
+
34
+ Meucci was recognized for his pioneering work on the telephone by the [[United States House of Representatives]] in [http://thomas.loc.gov/cgi-bin/query/z?c107:H.RES.269 House Resolution 269], dated June 11, 2002. The resolution stated that ''"if Meucci had been able to pay the $10 fee to maintain the caveat after 1874, no patent could have been issued to Bell."'' However, the resolution was a symbolic, non-binding statement without legal effect, and was promptly followed by a legislative motion mooting it, passed unanimously by [[37th Canadian Parliament|Canada's 37th Parliament]], which declared that [[Alexander Graham Bell]] was the inventor of the telephone. Additionally, many others disagreed with the Congressional resolution, some of whom provided [[Canadian_Parliamentary_Motion_on_Alexander_Graham_Bell#Critical_views_of_both_the_Bell_Parliamentary_Motion_and_Resolution_HRes_269|criticisms of both its accuracy and intent]].
35
+
36
+ {{further|[[Canadian Parliamentary Motion on Alexander Graham Bell]]}}
37
+
38
+ ==== Chronology of Meucci's invention ====
39
+
40
+ An Italian researcher in telecommunications, [http://www.esanet.it/chez_basilio/index.html Basilio Catania], and the [http://www.aei.it/ita/ Italian Society of Electrotechnics, "Federazione Italiana di Elettrotecnica"], have devoted a Museum to Antonio Meucci, constructing a [http://www.aei.it/ita/museo/mam_intel.htm chronology of his invention of the telephone] and tracing the history of the two legal trials involving Meucci and Alexander Graham Bell<ref>http://www.esanet.it/chez_basilio/meucci.htm</ref><ref>http://www.aei.it/ita/museo/mam_hpg1.htm</ref>. Both claim that Meucci was the real inventor of the telephone, but base their argument on the reconstructed, rather than contemporary, evidence. What follows, if not otherwise stated, is a résumé of their historic reconstruction.<ref>[http://www.esanet.it/chez_basilio/meucci_faq.htm#6 Basilio Catania's reconstruction, in English]</ref><br />
41
+ * In 1834 Meucci constructed a kind of acoustic telephone as a way to communicate between the stage and control room at the theatre "Teatro della Pergola" in Florence. This telephone is constructed on the model of pipe-telephones on ships and is still working.<ref>[http://www.aei.it/ita/museo/mam_tela.htm Picture of the acoustic telephone, page maintained by the Italian Society of Electrotechnics]</ref>
42
+ * In 1848 Meucci developed a popular method of using electric shocks to treat [[rheumatism]]. He used to give his patients two conductors linked to 60 Bunsen batteries and ending with a cork. He also kept two conductors linked to the same Bunsen batteries. He used to sit in his laboratory, while the Bunsen batteries were placed in a second room and his patients in a third room. In 1849 while providing a treatment to a patient with a 114V electrical discharge, in his laboratory Meucci heard his patient's scream through the piece of copper wire that was between them, from the conductors he was keeping near his ear. His intuition was that the "tongue" of copper wire was vibrating just like a leave of an electroscope; which means that there was an electrostatic effect. In order to continue the experiment without hurting his patient, Meucci covered the copper wire with a piece of paper. Through this device he heard inarticulated human voice. He called this device "telegrafo parlante" (litt. "talking telegraph").<ref>[http://www.aei.it/ita/museo/mam_voce.htm Meucci's original drawings. Page maintained by the Italian Society of Electrotechnics]</ref>
43
+ * On the basis of this prototype, Meucci worked on more than 30 kinds of sound transmitting devices inspired by the telegraph model as did other pioneers of the telephone, such as [[Charles Bourseul]], [[Philipp Reis]], [[Innocenzo Manzetti]] and others. Meucci later claimed that he did not think about transmitting voice by using the principle of the telegraph "make-and-break" method, but he looked for a "continuous" solution that did not interrupt the electric current.
44
+ * In 1856 Meucci later claimed that he constructed the first electromagnetic telephone, made of an electromagnet with a nucleus in the shape of a horseshoe bat, a diaphragm of animal skin, stiffened with potassium dichromate and keeping a metal disk stuck in the middle. The instrument was hosted in a cylindrical carton box.<ref>[http://www.aei.it/ita/museo/mam_t1em.htm Meucci's original drawings. Page maintained by the Italian Society of Electrotechnics]</ref> He said he constructed this as a way to connect his second-floor bedroom to his basement laboratory, and thus communicate with his wife who was an [[Patient|invalid]].
45
+ * Meucci separated the two directions of transmission in order to eliminate the so-called "local effect", adopting what we would call today a 4-wire-circuit. He constructed a simple calling system with a telegraphic manipulator which short-circuited the instrument of the calling person, producing in the instrument of the called person a succession of impulses (clicks), much more intense than those of normal conversation. As he was aware that his device required a bigger band than a telegraph, he found some means to avoid the so-called "skin effect" through superficial treatment of the conductor or by acting on the material (copper instead of iron). He successfully used an insulated copper plait, thus anticipating the litz wire used by [[Nikola Tesla]] in RF coils. <br />
46
+ * In 1864 Meucci later claimed that he realized his "best device", using an iron diaphragm with optimized thickness and tightly clamped along its rim. The instrument was housed in a shaving-soap box, whose cover clamped the diaphragm.
47
+ * In August 1870, Meucci later claimed that he obtained transmission of articulate human voice at a mile distance by using as a conductor a copper plait insulated by cotton. He called his device "teletrofono". According to an [http://www.aei.it/ita/museo/mam_cain.htm Affidavit of lawyer Michael Lemmi] drawings and notes by Antonio Meucci dated September 27 1870 show coils of wire on long distance telephone lines. The painting made by Nestore Corradi [http://it.wikipedia.org/wiki/Nestore_Corradi] in 1858 mentions the sentence "Electric current from the inductor pipe"
48
+
49
+ The above information was published in the [http://www.gutenberg.org/dirs/1/3/4/0/13401/13401-h/13401-h.htm#13 Scientific American Supplement No. 520, December 19, 1885], based on reconstructions produced in 1885, for which there was no contemporary pre-1875 evidence. Meucci's 1871 [[Patent caveat|caveat]] did not mention any of the telephone features later credited to him by his lawyer, and which were published in that Scientific American Supplement, a major reason for the loss of the 'Bell v. Globe and Meucci' patent infringement court case, which was decided against him.<ref>[http://files.meetup.com/1004848/MeucciMarch07.pdf Meucci's 1871 patent caveat, pages 16-18]</ref> See [[Meucci#The caveat|Antonio Meucci –The caveat]], for the full printed text of his 1871 teletrofono patent caveat.
50
+
51
+ ===Cromwell Varley===
52
+ Around 1870 Mr. [[C. F. Varley]], F.R.S., a well-known English electrician, patented a number of variations on the audio telegraph based on Reis' work. He never claimed or produced a device capable of transmitting speech, only pure tones.
53
+
54
+ === Poul la Cour ===
55
+
56
+ Around 1874 [[Poul la Cour]], a [[Denmark|Danish]] inventor, experimented with audio telegraphs on a telegraph line between [[Copenhagen]] and [[Fredericia]] in [[Jutland]]. His experiment used a vibrating tuning-fork to interrupt the line current, which, after traversing the line passed through an [[electromagnet]] that acted upon the tines of another tuning-fork, making it resonate at the same pitch of the transmitting fork. Moreover, the hums were also recorded on paper by turning the electromagnetic receiver into a [[relay]], which actuated a [[Morse code]] printer by means of a local [[battery (electricity)|battery]]. Again, la Cour made no claims of transmitting voice, only pure tones.
57
+
58
+ ==Electro-magnetic transmitters and receivers==
59
+ ===Elisha Gray===
60
+ : ''Main article: [[Elisha Gray]], See also: [[Elisha Gray and Alexander Bell telephone controversy]]''
61
+
62
+ [[Elisha Gray]], of [[Chicago]] also devised a tone telegraph of this kind about the same time as La Cour. In Gray's tone telegraph, several vibrating steel reeds tuned to different frequencies interrupted the current, which at the other end of the line passed through electromagnets and vibrated matching tuned steel reeds near the electromagnet poles. Gray's 'harmonic telegraph,' with vibrating reeds, was used by the Western Union Telegraph Company. Since more than one set of vibration frequencies &mdash; that is to say, more than one musical tone &mdash; can be sent over the same wire simultaneously, the harmonic telegraph can be utilised as a 'multiplex' or many-ply telegraph, conveying several messages through the same wire at the same time; and these can either be read by the operator by the sound, or a permanent record can be made by the marks drawn on a ribbon of travelling paper by a Morse recorder. On 27 July 1875, Gray was granted U.S. patent 166,096 for "Electric Telegraph for Transmitting Musical Tones" (the harmonic telegraph).
63
+
64
+ On 14 February 1876, Gray filed a [[patent caveat]] for a telephone on the very same day in 1876 as did Bell's lawyer. The [[water microphone|water transmitter]] described in Gray's caveat was strikingly similar to the experimental telephone transmitter tested by Bell on March 10, 1876, a fact which raised questions about whether Bell (who knew of Gray) was inspired by Gray's design or vice versa. Although Bell did not use Gray's water transmitter in later telephones, evidence suggests that Bell's lawyers may have obtained an unfair advantage over Gray.<ref name="see">[[Elisha Gray and Alexander Bell Controversy]]</ref><ref>Inventor's Digest, July/August 1998, p. 26-28</ref>
65
+
66
+ ===Alexander Graham Bell===
67
+ {{main|Alexander Graham Bell}}
68
+ [[Image:AGBell Notebook.jpg|thumb|300px|right|Bell's [[March 10]] [[1876]] laboratory notebook entry describing his first successful experiment with the telephone.]]
69
+
70
+ [[Alexander Graham Bell]] of [[Scotland]] is commonly credited as the inventor of the first practical telephone. The classic story of his crying out "Watson, come here! I want to see you!" is a well known part of American history<ref>American Treasures of the Library of Congress ... Bell - Lab notebook</ref>. But Alexander Graham Bell was also an astute and articulate business man with influential and wealthy friends.
71
+
72
+ As Professor of Vocal Physiology at [[Boston University]], Bell was engaged in training teachers in the art of instructing deaf mutes how to speak, and experimented with the [[Leon Scott]] [[phonautograph]] in recording the vibrations of speech. This apparatus consists essentially of a thin membrane vibrated by the voice and carrying a light stylus, which traces an undulatory line on a plate of [[smoked glass]]. The line is a graphic representation of the vibrations of the membrane and the waves of sound in the air.<ref>Robert Bruce (1990), pages 102-103, 110-113, 120-121</ref>
73
+
74
+ This background prepared Bell for work with spoken sound waves and electricity. He began his experiments in 1873-1874 with a harmonic telegraph, following the examples of Bourseul, Reis, Meucci, and Gray. Bell's designs employed various on-off-on-off make-break current-interrupters driven by vibrating steel reeds which sent interrupted current to a distant receiver electro-magnet that caused a second steel reed or tuning fork to vibrate.<ref>Robert Bruce (1990), pages 104-109</ref>
75
+
76
+ During a June 2, 1875 experiment by Bell and his assistant Watson, a receiver reed failed to respond to the intermittent current supplied by an electric battery. Bell told Watson, who was at the other end of the line, to pluck the reed, thinking it had stuck to the pole of the magnet. Mr. Watson complied, and to his astonishment Bell heard a reed at his end of the line vibrate and emit the same timbre of a plucked reed, although there was no interrupted on-off-on-off current from a transmitter to make it vibrate.<ref>Robert Bruce (1990), pages 146-148</ref> A few more experiments soon showed that his receiver reed had been set in vibration by the magneto-electric currents induced in the line by the motion of the distant receiver reed in the neighbourhood of its magnet. The battery current was not causing the vibration but was needed only to supply the magnetic field in which the reeds vibrated. Moreover, when Bell heard the rich overtones of the plucked reed, it occurred to him that since the circuit was never broken, all the complex vibrations of speech might be converted into undulating (alternating) currents, which in turn would reproduce the complex timbre, amplitude, and frequencies of speech at a distance.
77
+
78
+ After Bell and Watson discovered on June 2, 1875 that movements of the reed alone in a magnetic field could reproduce the frequencies and timbre of spoken sound waves, Bell reasoned by analogy with the mechanical phonautograph that a skin diaphragm would reproduce sounds like the human ear when connected to a steel or iron reed or hinged armature. On July 1, 1875, he instructed Watson to build a receiver consisting of a stretched diaphragm or drum of [[goldbeater's skin]] with an armature of magnetized iron attached to its middle, and free to vibrate in front of the pole of an electromagnet in circuit with the line. A second membrane-device was built for use as a transmitter.<ref name="Robert Bruce 1990, page 149">Robert Bruce (1990), page 149</ref> This was the "gallows" phone. A few days later they were tried together, one at each end of the line, which ran from a room in the inventor's house in Boston to the cellar underneath. Bell, in the work room, held one instrument in his hands, while Watson in the cellar listened at the other. Bell spoke into his instrument, “Do you understand what I say?” and Mr. Watson answered “Yes”. However, the voice sounds were not distinct and the armature tended to stick to the electromagnet pole and tear the membrane.
79
+
80
+ Because of illness and other commitments, Bell made little or no telephone improvements or experiments for eight months until after his U.S. patent 174,465 was published.<ref name="Robert Bruce 1990, page 149"/> On March 10, 1876, Bell tested Gray's water transmitter design only after Bell's patent was granted and only as a [[proof of concept]] scientific experiment<ref>Evenson, page 99.</ref> to prove to his own satisfaction that intelligible "articulate speech" (Bell's words) could be electrically transmitted.<ref>Evenson, page 98.</ref> After March 1876, Bell focused on improving the electromagnetic telephone and never used Gray's liquid transmitter in public demonstrations or commercial use.<ref>Evenson, page 100.</ref>
81
+
82
+ ==Variable resistance transmitters==
83
+ ===Elisha Gray===
84
+
85
+ Gray's harmonic telegraph apparatus followed in the track of Reis and Bourseul &mdash; that is to say, the interruption of the current by a vibrating contact. But Gray recognized the lack of fidelity of the make-break transmitter, and reasoned by analogy with the lovers telegraph, that if the current could be made to more closely model the movements of the diaphragm, rather than simply opening and closing the circuit, greater fidelity might be achieved. Gray filed a [[patent caveat]] with the US patent office on [[February 14]] [[1876]] for a [[water microphone|liquid microphone]]. The device used a metal needle or rod that was placed &mdash; just barely &mdash; into a liquid conductor, such as a water/acid mixture. In response to the diaphragm's vibrations, the needle dipped more or less into the liquid, varying the electrical resistance and thus the current passing through the device and on to the receiver. Gray did not convert his caveat into a patent until after the caveat had expired and hence left the field open to Bell.
86
+
87
+ ===Bell's success===
88
+
89
+ [[Image:TelephonePatentDrawingBell.jpg|thumb|right|Alexander Graham Bell's telephone patent<ref>{{Patent|US|174465|Alexander Graham Bell: „Improvement in Telegraphy“ filed on February 14, 1876, granted on March 7, 1876.}}</ref> drawing, [[7 March]] [[1876]].]]
90
+
91
+ The first successful bi-directional transmission of clear speech by Bell and Watson was made on March 10, 1876 when Bell spoke into his device, “Mr. Watson, come here, I want to see you.” and Watson answered. Bell used Gray's liquid transmitter design<ref>Shulman, pages 36-37. Bell's lab notes dated March 9, 1876 show a drawing of a person speaking face down into a liquid transmitter very similar to the liquid transmitter depicted as Fig. 3 in Gray's caveat.</ref> in his famous March 10, 1876 experiment, but Bell did not use a liquid transmitter again, because it was not practical for commercial products.
92
+
93
+ The first long distance telephone call was made on [[10 August]] [[1876]] by Bell from the family homestead in [[Brantford, Ontario|Brantford]], [[Ontario]], to his assistant located in [[Paris, Ontario|Paris]], [[Ontario]], some 10 miles (16&nbsp;km) distant.
94
+
95
+ A finished instrument was then made, having a transmitter formed of a double electromagnet, in front of which a membrane, stretched on a ring, carried an oblong piece of soft iron cemented to its middle. A mouthpiece before the diaphragm directed the sounds upon it, and as it vibrated with them, the soft iron “armature” induced corresponding currents in the coils of the electromagnet. These currents after traversing the line were passed through the receiver, which consisted of a tubular electromagnet, having one end partially closed by a thin circular disc of soft iron fixed at one point to the end of the tube. This receiver bore a resemblance to a cylindrical metal box with thick sides, having a thin iron lid fastened to its mouth by a single screw. When the undulatory current passed through the coil of this magnet, the disc, or armature-lid, was put into vibration and sounds were emitted from it.
96
+
97
+ This primitive telephone was rapidly improved, the double electromagnet being replaced by a single bar magnet having a small coil or bobbin of fine wire surrounding one pole, in front of which a thin disc of ferrotype was fixed in a circular mouthpiece, and served as a combined membrane and armature. On speaking into the mouthpiece, the iron diaphragm vibrated with the voice in the [[magnetic field]] of the pole, and thereby caused undulatory currents in the coil, which, after traveling through the wire to the distant receiver, were received in an identical apparatus. This form was patented January 30, 1877. The sounds were weak and could only be heard when the ear was close to the earphone/mouthpiece, but they were distinct.
98
+
99
+ ====Public demonstrations====
100
+ =====Earliest public demonstration of Bell's telephone=====
101
+ In June 1876, Bell exhibited a telephone prototype at the Centennial Exhibition in Philadelphia, where it attracted the attention of Brazilian emperor [[Pedro II of Brazil|Pedro II]] and scientist Sir William Thomson. In August 1876 at a meeting of the British Association for the Advancement of Science, Thomson revealed the telephone to the European public. In describing his visit to the Philadelphia Exhibition, Thomson said, 'I heard [through the telephone] passages taken at random from the New York newspapers: "s.s. Cox has arrived" (I failed to make out the s.s. Cox); "The City of New York", "Senator Morton", "The Senate has resolved to print a thousand extra copies", "The Americans in London have resolved to celebrate the coming Fourth of July!" All this my own ears heard spoken to me with unmistakable distinctness by the then circular disc armature of just such another little electro-magnet as this I hold in my hand.'
102
+ <!-- Unsourced image removed: [[Image:AGBellPhoneDemo1877.jpg|thumb|left|Alexander Graham Bell demonstrates the telephone, 1877. ]] -->
103
+
104
+ =====Later public demonstrations=====
105
+
106
+ The later telephone design was publicly exhibited on May 4 1877 at a lecture given by Professor Bell in the Boston Music Hall. According to a report: Going to the small telephone box with its slender wire attachments, Mr. Bell coolly asked, as though addressing some one in an adjoining room, “Mr. Watson, are you ready!” Mr. Watson, five miles away in Somerville, promptly answered in the affirmative, and soon was heard a voice singing “America”. [...] Going to another instrument, connected by wire with Providence, forty-three miles distant, Mr. Bell listened a moment, and said, “Signor Brignolli, who is assisting at a concert in Providence Music Hall, will now sing for us.” In a moment the cadence of the tenor's voice rose and fell, the sound being faint, sometimes lost, and then again audible. Later, a cornet solo played in Somerville was very distinctly heard. Still later, a three-part song came over the wire from Somerville, and Mr. Bell told his audience “I will switch off the song from one part of the room to another, so that all can hear.” At a subsequent lecture in [[Salem, Massachusetts]], communication was established with Boston, eighteen miles distant, and Mr. Watson at the latter place sang “Auld Lang Syne”, “The Star-Spangled Banner”, and “Hail Columbia”, while the audience at Salem joined in the chorus.
107
+
108
+ ====Summary of Bell's achievements====
109
+ Bell did for the telephone what Henry Ford did for the automobile. Although not the first to experiment with telephonic devices, Bell and the companies founded in his name were the first to develop commercially practical telephones around which a successful business could be built and grow. Bell adopted carbon transmitters similar to Edison's transmitters and adapted telephone exchanges and switching plug boards developed for telegraphy. Watson and other Bell engineers invented numerous other improvements to telephony. Bell succeeded where others failed to assemble a commercially viable telephone '''system'''. It can be argued that Bell invented the telephone industry.
110
+
111
+ === Carbon microphone - Thomas Edison ===
112
+ [[Thomas Alva Edison]] took the next step in improving the telephone with his invention in 1878 of the [[Carbon microphone|carbon grain transmitter]] that provided a strong voice signal on the transmitting circuit that made long-distance calls practical. Edison discovered that carbon grains, squeezed between two metal plates, had a resistance that was related to the pressure. Thus, the grains could vary their resistance as the plates moved in response to sound waves, and reproduce sound with good fidelity, without the weak signals associated with electro-magnetic transmitters.
113
+
114
+ The carbon microphone was further improved by [[Emile Berliner]], [[Francis Blake (telephone)|Francis Blake]], [[David E. Hughes]], [[Henry Hunnings]], and [[Anthony C. White|Anthony White]]. The carbon transmitter remained standard in telephony until the 1980s, and is still being produced.
115
+
116
+ ==Improvements to the early telephone==
117
+ Additional inventions such as the call bell, central telephone exchange, common battery, ring tone, amplification, trunk lines, wireless phones, etc. were made by various engineers who made the telephone the useful and widespread apparatus it is now.
118
+
119
+ === Telephone exchange - Tivadar Puskás ===
120
+ [[Tivadar Puskás]] was working on his idea for a [[telegraph]] exchange when [[Alexander Graham Bell]] received the first patent for the [[telephone]]. This caused Puskás to take a fresh look at his own work and he refocused on perfecting a design for a [[telephone exchange]]. Puskás got in touch with the American inventor [[Thomas Edison]] who liked the design. According to Edison, "Tivadar Puskas was the first person to suggest the idea of a telephone exchange". Puskás's idea finally became a reality in 1877 in Boston. <ref>http://www.hungarian-history.hu/mszh/epuskas.htm</ref><ref>http://www.mszh.hu/English/feltalalok/puskas.html</ref><ref>http://www.geocities.com/bioelectrochemistry/puskas.html</ref><ref>http://www.omikk.bme.hu/archivum/angol/htm/puskas_t.htm</ref><ref>http://www.hunreal.com/hungarian-things/known-hungarians/tivadar-puskas/</ref> It was then that the Hungarian word "hallom" "I hear you" was used for the first time in a telephone conversation when, on hearing the voice of the person at the other end of the line, Puskás shouted "hallom". This cannot be confirmed by any original documents, however it has passed into Hungarian modern folklore. Hallom was shortened to [[Hello]], an older greeting that can be traced back to the Old English verb hǽlan.kiss my butt
121
+
122
+ ==Controversy==
123
+ {{See also|Canadian Parliamentary Motion on Alexander Graham Bell}}
124
+
125
+ Bell has been widely recognized as the "inventor" of the telephone outside of Italy, where Meucci was championed as its inventor. In the United States, there are numerous reflections of Bell as a North American icon for inventing the telephone, and the matter was for a long time non-controversial. In June 2002, however, the [[United States House of Representatives]] passed a symbolic bill recognizing the contributions of Antonio Meucci ''"<u>in</u> the invention of the telephone"'' (not ''"<u>for</u> the invention of the telephone"''), throwing the matter into some controversy. Ten days later the [[Parliament of Canada|Canadian parliament]] countered with a symbolic motion conferring official recognition for the invention of the telephone to Bell.
126
+
127
+ Champions of Meucci, of Manzetti, and of Gray have each offered fairly precise tales of a contrivance whereby Bell actively stole the invention of the telephone from their specific inventor. In the 2002 congressional resolution, it was inaccurately noted that Bell worked in a laboratory in which Meucci's materials had been stored, and claimed that Bell must thus have had access to those materials. Manzetti claimed that Bell visited him and examined his device in 1865. And it is alleged that Bell bribed a patent examiner, Zenas Wilber, not only into processing his application before Gray's, but allowing a look at his rival's designs before final submission.
128
+
129
+ One of the valuable claims in Bell's 1876 patent US 174,465 was claim 4, a method of producing variable electrical current in a circuit by varying the resistance in the circuit. That feature was not shown in any of Bell's [[patent drawing]]s, but was shown in Elisha Gray's drawings in his [[Patent caveat|caveat]] filed the same day 14 February 1876. A description of the variable resistance feature, consisting of 7 sentences, was inserted into Bell's application. That it was inserted is not disputed. But when it was inserted is a controversial issue. Bell testified that he wrote the sentences containing the variable resistance feature before 18 January 1876 "almost at the last moment" before sending his draft application to his lawyers. A book by Evenson<ref>Evenson, pages 64-69, 86-87, 110, 194-196</ref> argues that the 7 sentences and claim 4 were inserted, without Bell's knowledge, just before Bell's application was hand carried to the Patent Office by one of Bell's lawyers on 14 February 1876.
130
+
131
+ Contrary to the popular story, Gray's caveat was taken to the US Patent Office a few hours before Bell's application. Gray's caveat was taken to the Patent Office in the morning of 14 February 1876 shortly after the Patent Office opened and remained near the bottom of the in-basket until that afternoon. Bell's application was filed shortly before noon on 14 February by Bell's lawyer who requested that the filing fee be entered immediately onto the cash receipts blotter and Bell's application was taken to the Examiner immediately. Late in the afternoon, Gray's caveat was entered on the cash blotter and was not taken to the Examiner until the following day. The fact that Bell's filing fee was recorded earlier than Gray's led to the myth that Bell had arrived at the Patent Office earlier.<ref>Evenson, pages 68-69</ref> Bell was in Boston on 14 February and did not know this happened until later. Gray later abandoned his caveat and that opened the door to Bell being granted US patent 174,465 for the telephone on 7 March 1876.
132
+
133
+ {{see|Elisha Gray and Alexander Bell telephone controversy}}
134
+
135
+ ==Patents==
136
+ * {{Patent|US|161739|''Transmitter and Receiver for Electric Telegraphs'' (tuned steel reeds) by Alexander Graham Bell ([[April 6]] [[1875]])}}
137
+ * {{Patent|US|174465|''Telegraphy'' (Bell's first telephone patent) by Alexander Graham Bell ([[March 7]] [[1876]])}}
138
+ * {{Patent|US|178399|''Telephonic Telegraphic Receiver'' (vibrating reed) by Alexander Graham Bell ([[June 6]] [[1876]])}}
139
+ * {{Patent|US|181553|''Generating Electric Currents'' (magneto) by Alexander Graham Bell ([[August 29]] [[1876]])}}
140
+ * {{Patent|US|186787|''Electric Telegraphy'' (permanent magnet receiver) by Alexander Graham Bell ([[January 15]] [[1877]])}}
141
+ * {{Patent|US|201488|''Speaking Telephone'' (receiver designs) by Alexander Graham Bell ([[March 19]] [[1878]])}}
142
+ * {{Patent|US|213090|''Electric Speaking Telephone'' (frictional transmitter) by Alexander Graham Bell ([[March 11]] [[1879]])}}
143
+ * {{Patent|US|220791|''Telephone Circuit'' (twisted pairs of wire) by Alexander Graham Bell ([[October 21]] [[1879]])}}
144
+ * {{Patent|US|228507|''Electric Telephone Transmitter'' (hollow ball transmitter) by Alexander Graham Bell ([[June 8]] [[1880]])}}
145
+ * {{Patent|US|230168|''Circuit for Telephone'' by Alexander Graham Bell ([[July 20]] [[1880]])}}
146
+ * {{Patent|US|238833|''Electric Call-Bell'' by Alexander Graham Bell ([[March 15]] [[1881]])}}
147
+ * {{Patent|US|241184|''Telephonic Receiver'' (local battery circuit with coil) by Alexander Graham Bell ([[May 10]] [[1881]])}}
148
+ * {{Patent|US|244426|''Telephone Circuit'' (cable of twisted pairs) by Alexander Graham Bell ([[July 19]] [[1881]])}}
149
+ * {{Patent|US|252576|''Multiple Switch Board for Telephone Exchanges'' by Leroy Firman (Western Electric) ([[January 17]] [[1882]])}}
150
+ * {{Patent|US|474230|''Speaking Telegraph'' (graphite transmitter) by Thomas Edison}}
151
+ * {{Patent|US|203016|''Speaking Telephone'' (carbon button transmitter) by Thomas Edison}}
152
+ * {{Patent|US|222390|''Carbon Telephone'' (carbon granules transmitter) by Thomas Edison}}
153
+ * {{Patent|US|485311|''Telephone'' (solid back carbon transmitter) by Anthony C. White (Bell engineer)}}
154
+ * {{Patent|US|597062|''Calling Device for Telephone Exchange'' (dial) by A. E. Keith ([[11 January]] [[1898]])}}
155
+ * {{Patent|US|3449750|''Duplex Radio Communication and Signalling Appartus'' by G. H. Sweigert}}
156
+ * {{Patent|US|3663762|''Cellular Mobile Communication System'' by Amos Edward Joel (Bell Labs)}}
157
+ * {{Patent|US|3906166|''Radio Telephone System'' (DynaTAC cell phone) by Martin Cooper et al. (Motorola)}}
158
+
159
+ ==See also==
160
+ * [[Timeline of the telephone]]
161
+ * [[History of the telephone]]
162
+
163
+ ==References==
164
+ </div>
165
+ <references/>
166
+
167
+ ==Bibliography==
168
+ * Baker, Burton H. (2000), ''The Gray Matter: The Forgotten Story of the Telephone'', Telepress, St. Joseph, MI, 2000. ISBN 0-615-11329-X
169
+ * (fr) Bourseul, Charles, ''Transmission électrique de la parole'', [[L'Illustration]] (Paris), 26.08.1854
170
+ * Bruce, Robert V. (1990), ''Bell: Alexander Bell and the Conquest of Solitude'', Cornell University Press, 1990. ISBN 0-80149691-8
171
+ * Coe, Lewis (1995), ''The Telephone and Its Several Inventors: A History'', McFarland, North Carolina, 1995. ISBN 0-7864-0138-9
172
+ * Evenson, A. Edward (2000), ''The Telephone Patent Conspiracy of 1876: The Elisha Gray - Alexander Bell Controversy'', McFarland, North Carolina, 2000. ISBN 0-7864-0883-9
173
+ * Gray, Charlotte, (2006) ''"Reluctant Genius: The Passionate Life and Inventive Mind of Alexander Graham Bell"'', HarperCollins, Toronto, 2006, ISBN 0002006766, ISBN 9780002006767 IBO: 621.385092;
174
+ * Josephson, Matthew (1992), ''Edison: A Biography'', Wiley, ISBN 0-471-54806-5
175
+ *{{Gutenberg | no=979 | name=Heroes of the Telegraph by John Munro}}
176
+ * Shulman, Seth (2008), ''[[The Telephone Gambit]]'', Norton & Company, New York, 2008. ISBN 978-0-393-06206-9
177
+ * Thompson, Sylvanus P. (1883), ''Philipp Reis, Inventor of the Telephone'', London: E. & F. N. Spon, 1883.
178
+ *[http://www.loc.gov/exhibits/treasures/trr002.html ''American Treasures of the Library of Congress'', Alexander Graham Bell - Lab notebook I, pages 40-41 (image 22)]
179
+ *[http://www.gutenberg.org/dirs/1/3/4/0/13401/13401-h/13401-h.htm#13 Scientific American Supplement No. 520, [[December 19]] [[1885]]]
180
+ *[http://www.pacificsites.com/~brooke/TelPat.shtml Telephone Patents]
181
+ *[http://thomas.loc.gov/cgi-bin/query/D?c107:1:./temp/~c107LSJRsg:: HRes 269, text of 17 October 2001]
182
+ *[http://thomas.loc.gov/cgi-bin/query/D?c107:2:./temp/~c107LSJRsg:: HRes 269, text of 11 June 2002]
183
+
184
+ ==Further reading==
185
+ * Bethure, Brian, (2008) ''[http://www.thecanadianencyclopedia.com/index.cfm?PgNm=TCE&Params=M1ARTM0013201 Did Bell Steal the Idea for the Phone?'' (Book Review)], Maclean's Magazine, February 4, 2008;
186
+ * Shulman, Seth, (2007) [http://books.google.com/books?id=AZB6E-75K-gC&dq=Telephone+Gambit+sHULMAN&ei=E63bScKoOojUNKqLqfsC Telephone Gambit: Chasing Alexander Graham Bell's Secret], W.W. Norton & Comp.; 1 edition, December 25, 2007), ISBN 0393062066, ISBN 978-0393062069
187
+
188
+ ==External links==
189
+ * [http://www.juliantrubin.com/bigten/telephoneexperiments.html Alexander Bell's Experiments] - the tuning fork and liquid transmitter.
190
+
191
+ {{DEFAULTSORT:Invention Of The Telephone}}
192
+ [[Category:Telecommunications history]]
193
+ [[Category:Telephony]]
194
+ [[Category:Telecommunications]]
195
+ [[Category:Technology in society]]
196
+ [[Category:Discovery and invention controversies]]
197
+
198
+ [[de:Erfindung des Telefons]]
199
+