{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/3147","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/3147/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/3147/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/3147/events","html_url":"https://github.com/ethereum/solidity/pull/3147","id":269380013,"number":3147,"title":"Suggest alternatives when identifier not found. Closes #3058.","user":{"login":"Balajiganapathi","id":3313154,"avatar_url":"https://avatars2.githubusercontent.com/u/3313154?v=4","gravatar_id":"","url":"https://api.github.com/users/Balajiganapathi","html_url":"https://github.com/Balajiganapathi","followers_url":"https://api.github.com/users/Balajiganapathi/followers","following_url":"https://api.github.com/users/Balajiganapathi/following{/other_user}","gists_url":"https://api.github.com/users/Balajiganapathi/gists{/gist_id}","starred_url":"https://api.github.com/users/Balajiganapathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Balajiganapathi/subscriptions","organizations_url":"https://api.github.com/users/Balajiganapathi/orgs","repos_url":"https://api.github.com/users/Balajiganapathi/repos","events_url":"https://api.github.com/users/Balajiganapathi/events{/privacy}","received_events_url":"https://api.github.com/users/Balajiganapathi/received_events","type":"User","site_admin":false},"labels":[{"id":422785568,"url":"https://api.github.com/repos/ethereum/solidity/labels/nextrelease","name":"nextrelease","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-10-29T08:12:06Z","updated_at":"2018-02-09T15:12:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ethereum/solidity/pulls/3147","html_url":"https://github.com/ethereum/solidity/pull/3147","diff_url":"https://github.com/ethereum/solidity/pull/3147.diff","patch_url":"https://github.com/ethereum/solidity/pull/3147.patch"},"body":"We can use the following method to compute alternatives:\r\n\r\n1. When an identifier is not found, look through current and enclosing scopes and compare each declaration name with the identifier name\r\n2. To decide whether two names are similar, calculate the [Damerau–Levenshtein distance](https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance). This metric considers insertion, deletion, substitution and transposition as single operations\r\n3. If the DL distance is <= 2 and it is less than the lengths of the name they can be considered similar. \r\n\r\nFor https://github.com/ethereum/solidity/issues/3058."},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/364460830","html_url":"https://github.com/ethereum/solidity/pull/3147#issuecomment-364460830","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/3147","id":364460830,"user":{"login":"axic","id":20340,"avatar_url":"https://avatars3.githubusercontent.com/u/20340?v=4","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T15:12:27Z","updated_at":"2018-02-09T15:12:27Z","author_association":"MEMBER","body":"@chriseth oh I think actually this was waiting for you to review. Can you review the updates? It shouldn't be too hard to finish this one."}}
{"actor":{"display_login":"axic"}}