{"action":"created","comment":{"url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/comments/36367270","id":36367270,"diff_hunk":"@@ -27,14 +57,20 @@ def is_badword(word):\n         return word.lower() in BADWORDS\n     return is_badword\n \n+def is_informalword_process():\n+    def is_informalword(word):\n+        return word.lower() in INFORMALWORDS\n+    return is_informalword\n \n is_badword = LanguageUtility(\"is_badword\", is_badword_process, depends_on=[])\n+is_informalword = LanguageUtility(\"is_informalword\", is_informalword_process, depends_on=[])\n is_misspelled = LanguageUtility(\"is_misspelled\", is_misspelled_process,\n                                 depends_on=[])\n \n-sys.modules[__name__] = Language(__name__, [is_badword, is_misspelled])\n+sys.modules[__name__] = Language(__name__, [is_badword, is_misspelled,is_informalword])\n \"\"\"\n Implements :class:`~revscoring.languages.language.Language` for Persian/Farsi.\n :data:`~revscoring.languages.language.is_badword` and\n+:data:`~revscoring.languages.language.is_informalword` and\n :data:`~revscoring.languages.language.is_misspelled` are provided.\n-\"\"\"\n+\"\"\"","path":"revscoring/languages/persian.py","position":68,"original_position":68,"commit_id":"5fe4945f581d5f81d71cdbc36d92402d164debf8","original_commit_id":"5fe4945f581d5f81d71cdbc36d92402d164debf8","user":{"login":"Ladsgroup","id":5351225,"avatar_url":"https://avatars.githubusercontent.com/u/5351225?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladsgroup","html_url":"https://github.com/Ladsgroup","followers_url":"https://api.github.com/users/Ladsgroup/followers","following_url":"https://api.github.com/users/Ladsgroup/following{/other_user}","gists_url":"https://api.github.com/users/Ladsgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladsgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladsgroup/subscriptions","organizations_url":"https://api.github.com/users/Ladsgroup/orgs","repos_url":"https://api.github.com/users/Ladsgroup/repos","events_url":"https://api.github.com/users/Ladsgroup/events{/privacy}","received_events_url":"https://api.github.com/users/Ladsgroup/received_events","type":"User","site_admin":false},"body":"add a new line at the end of the file","created_at":"2015-08-05T23:30:20Z","updated_at":"2015-08-05T23:30:20Z","html_url":"https://github.com/wiki-ai/revscoring/pull/156#discussion_r36367270","pull_request_url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/comments/36367270"},"html":{"href":"https://github.com/wiki-ai/revscoring/pull/156#discussion_r36367270"},"pull_request":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156","id":41735851,"html_url":"https://github.com/wiki-ai/revscoring/pull/156","diff_url":"https://github.com/wiki-ai/revscoring/pull/156.diff","patch_url":"https://github.com/wiki-ai/revscoring/pull/156.patch","issue_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/156","number":156,"state":"open","locked":false,"title":"+REVERENTWORDS & +BADWORDS_FINGLISH & +BADWORDS","user":{"login":"reza1615","id":2202483,"avatar_url":"https://avatars.githubusercontent.com/u/2202483?v=3","gravatar_id":"","url":"https://api.github.com/users/reza1615","html_url":"https://github.com/reza1615","followers_url":"https://api.github.com/users/reza1615/followers","following_url":"https://api.github.com/users/reza1615/following{/other_user}","gists_url":"https://api.github.com/users/reza1615/gists{/gist_id}","starred_url":"https://api.github.com/users/reza1615/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reza1615/subscriptions","organizations_url":"https://api.github.com/users/reza1615/orgs","repos_url":"https://api.github.com/users/reza1615/repos","events_url":"https://api.github.com/users/reza1615/events{/privacy}","received_events_url":"https://api.github.com/users/reza1615/received_events","type":"User","site_admin":false},"body":"I added some regexs for persian","created_at":"2015-08-05T22:57:36Z","updated_at":"2015-08-05T23:30:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c21ef6978137a474e346c4e83d4cb689ee605d7f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156/commits","review_comments_url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156/comments","review_comment_url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/156/comments","statuses_url":"https://api.github.com/repos/wiki-ai/revscoring/statuses/5fe4945f581d5f81d71cdbc36d92402d164debf8","head":{"label":"PersianWikipedia:master","ref":"master","sha":"5fe4945f581d5f81d71cdbc36d92402d164debf8","user":{"login":"PersianWikipedia","id":6509203,"avatar_url":"https://avatars.githubusercontent.com/u/6509203?v=3","gravatar_id":"","url":"https://api.github.com/users/PersianWikipedia","html_url":"https://github.com/PersianWikipedia","followers_url":"https://api.github.com/users/PersianWikipedia/followers","following_url":"https://api.github.com/users/PersianWikipedia/following{/other_user}","gists_url":"https://api.github.com/users/PersianWikipedia/gists{/gist_id}","starred_url":"https://api.github.com/users/PersianWikipedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PersianWikipedia/subscriptions","organizations_url":"https://api.github.com/users/PersianWikipedia/orgs","repos_url":"https://api.github.com/users/PersianWikipedia/repos","events_url":"https://api.github.com/users/PersianWikipedia/events{/privacy}","received_events_url":"https://api.github.com/users/PersianWikipedia/received_events","type":"Organization","site_admin":false},"repo":{"id":40272339,"name":"revscoring","full_name":"PersianWikipedia/revscoring","owner":{"login":"PersianWikipedia","id":6509203,"avatar_url":"https://avatars.githubusercontent.com/u/6509203?v=3","gravatar_id":"","url":"https://api.github.com/users/PersianWikipedia","html_url":"https://github.com/PersianWikipedia","followers_url":"https://api.github.com/users/PersianWikipedia/followers","following_url":"https://api.github.com/users/PersianWikipedia/following{/other_user}","gists_url":"https://api.github.com/users/PersianWikipedia/gists{/gist_id}","starred_url":"https://api.github.com/users/PersianWikipedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PersianWikipedia/subscriptions","organizations_url":"https://api.github.com/users/PersianWikipedia/orgs","repos_url":"https://api.github.com/users/PersianWikipedia/repos","events_url":"https://api.github.com/users/PersianWikipedia/events{/privacy}","received_events_url":"https://api.github.com/users/PersianWikipedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PersianWikipedia/revscoring","description":"A generic, machine learning-based revision scoring system for MediaWiki","fork":true,"url":"https://api.github.com/repos/PersianWikipedia/revscoring","forks_url":"https://api.github.com/repos/PersianWikipedia/revscoring/forks","keys_url":"https://api.github.com/repos/PersianWikipedia/revscoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PersianWikipedia/revscoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PersianWikipedia/revscoring/teams","hooks_url":"https://api.github.com/repos/PersianWikipedia/revscoring/hooks","issue_events_url":"https://api.github.com/repos/PersianWikipedia/revscoring/issues/events{/number}","events_url":"https://api.github.com/repos/PersianWikipedia/revscoring/events","assignees_url":"https://api.github.com/repos/PersianWikipedia/revscoring/assignees{/user}","branches_url":"https://api.github.com/repos/PersianWikipedia/revscoring/branches{/branch}","tags_url":"https://api.github.com/repos/PersianWikipedia/revscoring/tags","blobs_url":"https://api.github.com/repos/PersianWikipedia/revscoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PersianWikipedia/revscoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PersianWikipedia/revscoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/PersianWikipedia/revscoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PersianWikipedia/revscoring/statuses/{sha}","languages_url":"https://api.github.com/repos/PersianWikipedia/revscoring/languages","stargazers_url":"https://api.github.com/repos/PersianWikipedia/revscoring/stargazers","contributors_url":"https://api.github.com/repos/PersianWikipedia/revscoring/contributors","subscribers_url":"https://api.github.com/repos/PersianWikipedia/revscoring/subscribers","subscription_url":"https://api.github.com/repos/PersianWikipedia/revscoring/subscription","commits_url":"https://api.github.com/repos/PersianWikipedia/revscoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/PersianWikipedia/revscoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/PersianWikipedia/revscoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/PersianWikipedia/revscoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/PersianWikipedia/revscoring/contents/{+path}","compare_url":"https://api.github.com/repos/PersianWikipedia/revscoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PersianWikipedia/revscoring/merges","archive_url":"https://api.github.com/repos/PersianWikipedia/revscoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PersianWikipedia/revscoring/downloads","issues_url":"https://api.github.com/repos/PersianWikipedia/revscoring/issues{/number}","pulls_url":"https://api.github.com/repos/PersianWikipedia/revscoring/pulls{/number}","milestones_url":"https://api.github.com/repos/PersianWikipedia/revscoring/milestones{/number}","notifications_url":"https://api.github.com/repos/PersianWikipedia/revscoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PersianWikipedia/revscoring/labels{/name}","releases_url":"https://api.github.com/repos/PersianWikipedia/revscoring/releases{/id}","created_at":"2015-08-05T22:41:09Z","updated_at":"2015-08-05T22:41:09Z","pushed_at":"2015-08-05T23:17:36Z","git_url":"git://github.com/PersianWikipedia/revscoring.git","ssh_url":"git@github.com:PersianWikipedia/revscoring.git","clone_url":"https://github.com/PersianWikipedia/revscoring.git","svn_url":"https://github.com/PersianWikipedia/revscoring","homepage":"http://pythonhosted.org/revscoring","size":1810,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"wiki-ai:master","ref":"master","sha":"dc78d9e3cf453a82723aa1bb5a0d37872284f7b4","user":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"repo":{"id":23771350,"name":"revscoring","full_name":"wiki-ai/revscoring","owner":{"login":"wiki-ai","id":12821767,"avatar_url":"https://avatars.githubusercontent.com/u/12821767?v=3","gravatar_id":"","url":"https://api.github.com/users/wiki-ai","html_url":"https://github.com/wiki-ai","followers_url":"https://api.github.com/users/wiki-ai/followers","following_url":"https://api.github.com/users/wiki-ai/following{/other_user}","gists_url":"https://api.github.com/users/wiki-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/wiki-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiki-ai/subscriptions","organizations_url":"https://api.github.com/users/wiki-ai/orgs","repos_url":"https://api.github.com/users/wiki-ai/repos","events_url":"https://api.github.com/users/wiki-ai/events{/privacy}","received_events_url":"https://api.github.com/users/wiki-ai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wiki-ai/revscoring","description":"A generic, machine learning-based revision scoring system for MediaWiki","fork":false,"url":"https://api.github.com/repos/wiki-ai/revscoring","forks_url":"https://api.github.com/repos/wiki-ai/revscoring/forks","keys_url":"https://api.github.com/repos/wiki-ai/revscoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiki-ai/revscoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiki-ai/revscoring/teams","hooks_url":"https://api.github.com/repos/wiki-ai/revscoring/hooks","issue_events_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/events{/number}","events_url":"https://api.github.com/repos/wiki-ai/revscoring/events","assignees_url":"https://api.github.com/repos/wiki-ai/revscoring/assignees{/user}","branches_url":"https://api.github.com/repos/wiki-ai/revscoring/branches{/branch}","tags_url":"https://api.github.com/repos/wiki-ai/revscoring/tags","blobs_url":"https://api.github.com/repos/wiki-ai/revscoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiki-ai/revscoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiki-ai/revscoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiki-ai/revscoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiki-ai/revscoring/statuses/{sha}","languages_url":"https://api.github.com/repos/wiki-ai/revscoring/languages","stargazers_url":"https://api.github.com/repos/wiki-ai/revscoring/stargazers","contributors_url":"https://api.github.com/repos/wiki-ai/revscoring/contributors","subscribers_url":"https://api.github.com/repos/wiki-ai/revscoring/subscribers","subscription_url":"https://api.github.com/repos/wiki-ai/revscoring/subscription","commits_url":"https://api.github.com/repos/wiki-ai/revscoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiki-ai/revscoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiki-ai/revscoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiki-ai/revscoring/contents/{+path}","compare_url":"https://api.github.com/repos/wiki-ai/revscoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiki-ai/revscoring/merges","archive_url":"https://api.github.com/repos/wiki-ai/revscoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiki-ai/revscoring/downloads","issues_url":"https://api.github.com/repos/wiki-ai/revscoring/issues{/number}","pulls_url":"https://api.github.com/repos/wiki-ai/revscoring/pulls{/number}","milestones_url":"https://api.github.com/repos/wiki-ai/revscoring/milestones{/number}","notifications_url":"https://api.github.com/repos/wiki-ai/revscoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiki-ai/revscoring/labels{/name}","releases_url":"https://api.github.com/repos/wiki-ai/revscoring/releases{/id}","created_at":"2014-09-07T21:20:37Z","updated_at":"2015-07-30T21:41:11Z","pushed_at":"2015-08-05T23:17:36Z","git_url":"git://github.com/wiki-ai/revscoring.git","ssh_url":"git@github.com:wiki-ai/revscoring.git","clone_url":"https://github.com/wiki-ai/revscoring.git","svn_url":"https://github.com/wiki-ai/revscoring","homepage":"http://pythonhosted.org/revscoring","size":1810,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":13,"forks":15,"open_issues":13,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156"},"html":{"href":"https://github.com/wiki-ai/revscoring/pull/156"},"issue":{"href":"https://api.github.com/repos/wiki-ai/revscoring/issues/156"},"comments":{"href":"https://api.github.com/repos/wiki-ai/revscoring/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wiki-ai/revscoring/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/wiki-ai/revscoring/statuses/5fe4945f581d5f81d71cdbc36d92402d164debf8"}}}}