{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/22435627","id":22435627,"diff_hunk":"@@ -0,0 +1,81 @@\n+package DDG::Goodie::PeriodicTable;\n+\n+# ABSTRACT: Atomic masses and numbers for chemical elements\n+\n+use DDG::Goodie;\n+use YAML::XS qw(Load);\n+\n+zci answer_type => 'periodic_table';\n+zci is_cached   => 1;\n+\n+name 'Periodic Table';\n+description 'Atomic masses and numbers for chemical elements';\n+primary_example_queries 'atomic mass of Nitrogen', 'atomic number of Oxygen';\n+secondary_example_queries 'atomic weight of Na';\n+category 'physical_properties';\n+topics 'science';\n+code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/PeriodicTable.pm';\n+attribution github => [ 'zblair', 'Zachary D Blair' ];\n+\n+my @elements = @{ Load( scalar share('elements.yml')->slurp ) };\n+\n+# Triggers\n+triggers any => 'atomic mass', 'atomic weight', 'atomic number';","path":"lib/DDG/Goodie/PeriodicTable.pm","position":23,"original_position":23,"commit_id":"79aa2a8a33da4a13205636dd5b1997eaeebe5676","original_commit_id":"79aa2a8a33da4a13205636dd5b1997eaeebe5676","user":{"login":"mintsoft","id":978048,"avatar_url":"https://avatars.githubusercontent.com/u/978048?v=3","gravatar_id":"","url":"https://api.github.com/users/mintsoft","html_url":"https://github.com/mintsoft","followers_url":"https://api.github.com/users/mintsoft/followers","following_url":"https://api.github.com/users/mintsoft/following{/other_user}","gists_url":"https://api.github.com/users/mintsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mintsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mintsoft/subscriptions","organizations_url":"https://api.github.com/users/mintsoft/orgs","repos_url":"https://api.github.com/users/mintsoft/repos","events_url":"https://api.github.com/users/mintsoft/events{/privacy}","received_events_url":"https://api.github.com/users/mintsoft/received_events","type":"User","site_admin":false},"body":"What about adding \"proton number\" and \"nucleon number\" too?","created_at":"2015-01-04T00:26:25Z","updated_at":"2015-01-04T00:26:25Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892#discussion_r22435627","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/22435627"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892#discussion_r22435627"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892","id":26788148,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892","diff_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/892","number":892,"state":"open","locked":false,"title":"A periodic table instant answer for atomic numbers and masses","user":{"login":"zblair","id":125517,"avatar_url":"https://avatars.githubusercontent.com/u/125517?v=3","gravatar_id":"","url":"https://api.github.com/users/zblair","html_url":"https://github.com/zblair","followers_url":"https://api.github.com/users/zblair/followers","following_url":"https://api.github.com/users/zblair/following{/other_user}","gists_url":"https://api.github.com/users/zblair/gists{/gist_id}","starred_url":"https://api.github.com/users/zblair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zblair/subscriptions","organizations_url":"https://api.github.com/users/zblair/orgs","repos_url":"https://api.github.com/users/zblair/repos","events_url":"https://api.github.com/users/zblair/events{/privacy}","received_events_url":"https://api.github.com/users/zblair/received_events","type":"User","site_admin":false},"body":"**What does your Instant Answer do?**\r\nIt answers questions like \"atomic weight of Mercury\" or \"atomic mass of Hg\" that one might normally use a periodic table for.\r\n\r\n**What problem does your Instant Answer solve (Why is it better than organic links)?**\r\nIt provides a quick answer to this basic question without the need to click on a Wikipedia link.\r\n\r\n**What is the data source for your Instant Answer? (Provide a link if possible)**\r\nhttp://webelements.com/ and Wikipedia\r\n\r\n**Why did you choose this data source?**\r\nThey are both popular sources of information online for atomic mass and atomic number information.\r\n\r\n**Are there any other alternative (better) data sources?**\r\nThere are sources that provide atomic masses as ranges or with more precision, but I thought that this instant answer would provide simpler atomic masses such as those often found on periodic tables.\r\n\r\n**What are some example queries that trigger this Instant Answer?**\r\natomic mass of Nitrogen\r\natomic mass of N\r\nN atomic mass\r\natomic number of Nitrogen\r\natomic number of N\r\nN atomic number\r\n\r\n**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**\r\nHigh school and university chemistry students\r\n\r\n**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**\r\nNot that I am aware of.\r\n\r\n**Which existing Instant Answers will this one supercede/overlap with?**\r\nSome queries (e.g. \"atomic mass of N\") currently show an answer regarding the definition of \"Atomic mass\" from Wikipedia. However, longer queries such as \"atomic mass of Nitrogen\" don't seem to overlap with anything.\r\n\r\n**Are you having any problems? Do you need our help with anything?**\r\nI don't think so.\r\n\r\n**Where did you hear about DuckDuckHack? (For first time contributors)**\r\nI noticed it in the Menu > Get Involved > Develop link on https://duckduckgo.com/\r\n\r\n**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**\r\n![atomic_mass_ddg_instant_answer](https://cloud.githubusercontent.com/assets/125517/5604073/6f98decc-935a-11e4-84d4-09a7cfce1df2.png)\r\n\r\n## Checklist\r\nPlease place an 'X' where appropriate.\r\n\r\n```\r\n[X] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)\r\n[X] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)\r\n[X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)\r\n[X] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)\r\n[X] Tested cross-browser compatibility\r\n\r\n    Please let us know which browsers/devices you've tested on:\r\n    - Windows 8\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] IE 10\r\n\r\n    - Windows 7\r\n        [X] Google Chrome\r\n        [X] Firefox\r\n        [] Opera\r\n        [] IE 8\r\n        [X] IE 9\r\n        [] IE 10\r\n\r\n    - Windows XP\r\n        [] IE 7\r\n        [] IE 8\r\n\r\n    - Mac OSX\r\n        [] Google Chrome\r\n        [] Firefox\r\n        [] Opera\r\n        [] Safari\r\n\r\n    - iOS (iPhone)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - iOS (iPad)\r\n        [] Safari Mobile\r\n        [] Google Chrome\r\n        [] Opera\r\n\r\n    - Android\r\n        [] Firefox\r\n        [] Native Browser\r\n        [] Google Chrome\r\n        [] Opera\r\n```\r\n","created_at":"2015-01-03T23:12:48Z","updated_at":"2015-01-04T00:26:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c8e66901e7ee30733565ead8bbef82583532cc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/{number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/892/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/79aa2a8a33da4a13205636dd5b1997eaeebe5676","head":{"label":"zblair:master","ref":"master","sha":"79aa2a8a33da4a13205636dd5b1997eaeebe5676","user":{"login":"zblair","id":125517,"avatar_url":"https://avatars.githubusercontent.com/u/125517?v=3","gravatar_id":"","url":"https://api.github.com/users/zblair","html_url":"https://github.com/zblair","followers_url":"https://api.github.com/users/zblair/followers","following_url":"https://api.github.com/users/zblair/following{/other_user}","gists_url":"https://api.github.com/users/zblair/gists{/gist_id}","starred_url":"https://api.github.com/users/zblair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zblair/subscriptions","organizations_url":"https://api.github.com/users/zblair/orgs","repos_url":"https://api.github.com/users/zblair/repos","events_url":"https://api.github.com/users/zblair/events{/privacy}","received_events_url":"https://api.github.com/users/zblair/received_events","type":"User","site_admin":false},"repo":{"id":27252310,"name":"zeroclickinfo-goodies","full_name":"zblair/zeroclickinfo-goodies","owner":{"login":"zblair","id":125517,"avatar_url":"https://avatars.githubusercontent.com/u/125517?v=3","gravatar_id":"","url":"https://api.github.com/users/zblair","html_url":"https://github.com/zblair","followers_url":"https://api.github.com/users/zblair/followers","following_url":"https://api.github.com/users/zblair/following{/other_user}","gists_url":"https://api.github.com/users/zblair/gists{/gist_id}","starred_url":"https://api.github.com/users/zblair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zblair/subscriptions","organizations_url":"https://api.github.com/users/zblair/orgs","repos_url":"https://api.github.com/users/zblair/repos","events_url":"https://api.github.com/users/zblair/events{/privacy}","received_events_url":"https://api.github.com/users/zblair/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zblair/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":true,"url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/issues/comments/{number}","contents_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/zblair/zeroclickinfo-goodies/releases{/id}","created_at":"2014-11-28T04:59:48Z","updated_at":"2015-01-03T22:48:38Z","pushed_at":"2015-01-03T22:48:38Z","git_url":"git://github.com/zblair/zeroclickinfo-goodies.git","ssh_url":"git@github.com:zblair/zeroclickinfo-goodies.git","clone_url":"https://github.com/zblair/zeroclickinfo-goodies.git","svn_url":"https://github.com/zblair/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":6248,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"fd9ffb77517ae255c90cd22b93761fb23e6536b9","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":2164979,"name":"zeroclickinfo-goodies","full_name":"duckduckgo/zeroclickinfo-goodies","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/comments/{number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/releases{/id}","created_at":"2011-08-06T13:26:05Z","updated_at":"2015-01-03T03:35:14Z","pushed_at":"2015-01-02T21:14:11Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-goodies.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-goodies.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-goodies.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":19530,"stargazers_count":238,"watchers_count":238,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":589,"mirror_url":null,"open_issues_count":89,"forks":589,"open_issues":89,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/892"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/892"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/892/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/892/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/79aa2a8a33da4a13205636dd5b1997eaeebe5676"}}}}