{"action":"created","issue":{"url":"https://api.github.com/repos/markvanderloo/stringdist/issues/42","labels_url":"https://api.github.com/repos/markvanderloo/stringdist/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/markvanderloo/stringdist/issues/42/comments","events_url":"https://api.github.com/repos/markvanderloo/stringdist/issues/42/events","html_url":"https://github.com/markvanderloo/stringdist/issues/42","id":110006980,"number":42,"title":"stringdist with 'jw' method not producing symmetric distance","user":{"login":"gtumuluri","id":7058651,"avatar_url":"https://avatars.githubusercontent.com/u/7058651?v=3","gravatar_id":"","url":"https://api.github.com/users/gtumuluri","html_url":"https://github.com/gtumuluri","followers_url":"https://api.github.com/users/gtumuluri/followers","following_url":"https://api.github.com/users/gtumuluri/following{/other_user}","gists_url":"https://api.github.com/users/gtumuluri/gists{/gist_id}","starred_url":"https://api.github.com/users/gtumuluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtumuluri/subscriptions","organizations_url":"https://api.github.com/users/gtumuluri/orgs","repos_url":"https://api.github.com/users/gtumuluri/repos","events_url":"https://api.github.com/users/gtumuluri/events{/privacy}","received_events_url":"https://api.github.com/users/gtumuluri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/markvanderloo/stringdist/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/markvanderloo/stringdist/milestones/2","html_url":"https://github.com/markvanderloo/stringdist/milestones/1.9.4","labels_url":"https://api.github.com/repos/markvanderloo/stringdist/milestones/2/labels","id":1340536,"number":2,"title":"1.9.4","description":null,"creator":{"login":"markvanderloo","id":1927426,"avatar_url":"https://avatars.githubusercontent.com/u/1927426?v=3","gravatar_id":"","url":"https://api.github.com/users/markvanderloo","html_url":"https://github.com/markvanderloo","followers_url":"https://api.github.com/users/markvanderloo/followers","following_url":"https://api.github.com/users/markvanderloo/following{/other_user}","gists_url":"https://api.github.com/users/markvanderloo/gists{/gist_id}","starred_url":"https://api.github.com/users/markvanderloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markvanderloo/subscriptions","organizations_url":"https://api.github.com/users/markvanderloo/orgs","repos_url":"https://api.github.com/users/markvanderloo/repos","events_url":"https://api.github.com/users/markvanderloo/events{/privacy}","received_events_url":"https://api.github.com/users/markvanderloo/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-10-06T15:25:28Z","updated_at":"2015-10-06T15:25:28Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-10-06T13:25:08Z","updated_at":"2015-10-20T06:31:11Z","closed_at":null,"body":"Hi,\r\n\r\nPlease see below problem I have with asymmetry in the distance for 'jw' method. This is causing a problem in my data set. In fact, the specific strings I test in my data set (can't share due to PHI), the distance equality test for symmetry fails even more badly with much larger delta on the reverse.\r\n\r\nThank you\r\n\r\n> round(stringdist('HENCERANGE3058RUNAWAY2HELLCITYAA12345', 'RANCHRANGE3058RUNAWAY2HELLCITYAA12345', method = 'jw'), 8) == round(stringdist('RANCHRANGE3058RUNAWAY2HELLCITYAA12345', 'HENCERANGE3058RUNAWAY2HELLCITYAA12345', method = 'jw'), 8)\r\n[1] FALSE\r\n> 'HENCERANGE3058RUNAWAY2HELLCITYAA12345' == 'HENCERANGE3058RUNAWAY2HELLCITYAA12345'\r\n[1] TRUE\r\n> 'RANCHRANGE3058RUNAWAY2HELLCITYAA12345' == 'RANCHRANGE3058RUNAWAY2HELLCITYAA12345'\r\n[1] TRUE\r\n> \r\n> stringdist('HENCERANGE3058RUNAWAY2HELLCITYAA12345', 'RANCHRANGE3058RUNAWAY2HELLCITYAA12345', method = 'jw')\r\n[1] 0.2550837\r\n> stringdist('RANCHRANGE3058RUNAWAY2HELLCITYAA12345', 'HENCERANGE3058RUNAWAY2HELLCITYAA12345', method = 'jw')\r\n[1] 0.2265122"},"comment":{"url":"https://api.github.com/repos/markvanderloo/stringdist/issues/comments/149448230","html_url":"https://github.com/markvanderloo/stringdist/issues/42#issuecomment-149448230","issue_url":"https://api.github.com/repos/markvanderloo/stringdist/issues/42","id":149448230,"user":{"login":"markvanderloo","id":1927426,"avatar_url":"https://avatars.githubusercontent.com/u/1927426?v=3","gravatar_id":"","url":"https://api.github.com/users/markvanderloo","html_url":"https://github.com/markvanderloo","followers_url":"https://api.github.com/users/markvanderloo/followers","following_url":"https://api.github.com/users/markvanderloo/following{/other_user}","gists_url":"https://api.github.com/users/markvanderloo/gists{/gist_id}","starred_url":"https://api.github.com/users/markvanderloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markvanderloo/subscriptions","organizations_url":"https://api.github.com/users/markvanderloo/orgs","repos_url":"https://api.github.com/users/markvanderloo/repos","events_url":"https://api.github.com/users/markvanderloo/events{/privacy}","received_events_url":"https://api.github.com/users/markvanderloo/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T06:31:11Z","updated_at":"2015-10-20T06:31:11Z","body":"For OSX (and Windows) you need to explicitly tell `install.packages` to install from source.\r\n\r\n```\r\ndrat::addRepo(\"markvanderloo\")\r\ninstall.packages(\"stringdist\", type=\"source\")\r\n```"}}