{"id":26967087,"url":"https://github.com/yb66/typoglycaemic","last_synced_at":"2025-04-03T08:38:35.848Z","repository":{"id":56897162,"uuid":"196154541","full_name":"yb66/typoglycaemic","owner":"yb66","description":"An implementation of typoglycaemic word jumbling. Yu'oll hvae no difficltuy raeidng tihs, rgiht?","archived":false,"fork":false,"pushed_at":"2019-07-14T04:55:08.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T06:09:12.929Z","etag":null,"topics":["english","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yb66.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-10T07:27:33.000Z","updated_at":"2019-07-14T04:55:48.000Z","dependencies_parsed_at":"2022-08-21T01:50:38.524Z","dependency_job_id":null,"html_url":"https://github.com/yb66/typoglycaemic","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yb66%2Ftypoglycaemic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yb66%2Ftypoglycaemic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yb66%2Ftypoglycaemic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yb66%2Ftypoglycaemic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yb66","download_url":"https://codeload.github.com/yb66/typoglycaemic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246969354,"owners_count":20862487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["english","ruby"],"created_at":"2025-04-03T08:38:35.336Z","updated_at":"2025-04-03T08:38:35.833Z","avatar_url":"https://github.com/yb66.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typoglycaemic\n\n## Usage\n\n```ruby\nrequire 'typoglycaemic'\n```\n\n\n```ruby\nwords = \u003c\u003c~STR\nAccording to a researcher at Cambridge University, it doesn't matter in what order the letters in a word are, the only important thing is that the first and last letter be at the right place. The rest can be a total mess and you can still read it without problem. This is because the human mind does not read every letter by itself but the word as a whole.\nSTR\n\nputs Typoglycaemic(words).jumbled\n```\n\nThe output:\n\n\u003e Accorindg to a reeascrehr at Cmbairdge Uivnesrtiy, it deso'nt matter in what order the letters in a word are, the only ipmortnat tinhg is that the fisrt and last letter be at the rgiht pacle. The rset can be a toatl mses and you can still raed it wtiouht poblerm. Tihs is bceasue the huamn mnid does not read eevry letter by iteslf but the wrod as a wolhe.\n\n```ruby\nstr = \"A doctor has admitted the manslaughter of a teenage cancer patient who died after a hospital drug blunder.\"\nputs Typoglycaemic(str).jumbled\n```\n\nThe output:\n\n\u003e A docotr has amditted the mnsalugather of a teengae cnaecr ptiaent who died after a hspotail drug blnduer.\n\n\n```ruby\nstr = \"In the Victorian era, a lovely emerald green, partially formulated from arsenic, was used in fabrics and popular floral headdresses.\"\nputs Typoglycaemic(str).jumbled\n```\n\nThe output:\n\n\u003e In the Vitorcain era, a lovley emreald green, patirally fromlauetd form asenric, was uesd in fbarics and poplaur folarl headdersses.\n\nThe original is around if needed:\n\n```ruby\ntc = Typoglycaemic(str)\ntc.original\n```\n\n\n## The rules\n\nIt follows the rules set out [in this article](https://www.dictionary.com/e/typoglycemia/).\n\n\n## Why this library?\n\nMainly because I was getting bored of debugging and wanted to do something else, but also because I read this:\n\n\u003e In a final study, Gervais and Norenzayan used an even more subtle way of activating analytic thinking: by having participants fill out a survey measuring their religious beliefs that was printed in either clear font or font that was difficult to read. Prior research has shown that difficult-to-read font promotes analytic thinking by forcing participants to slow down and think more carefully about the meaning of what they are reading. The researchers found that participants who filled out a survey that was printed in unclear font expressed less belief as compared to those who filled out the same survey in the clear font.\n\n[How Critical Thinkers Lose Their Faith in God, Daisy Grewal, May 1, 2012, Scientific American](https://www.scientificamerican.com/article/how-critical-thinkers-lose-faith-god/)\n\nI might try using it on social networks when I want my \"opponent\" in a debate to bypass \"System 1\".\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'typoglycaemic'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install typoglycaemic\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/yb66/typoglycaemic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyb66%2Ftypoglycaemic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyb66%2Ftypoglycaemic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyb66%2Ftypoglycaemic/lists"}