{"id":23272333,"url":"https://github.com/letsdeepchat/way-too-long-words","last_synced_at":"2026-01-18T09:01:39.424Z","repository":{"id":153852928,"uuid":"432378997","full_name":"letsdeepchat/Way-Too-Long-Words","owner":"letsdeepchat","description":"Way Too Long Words using JAVA solution","archived":false,"fork":false,"pushed_at":"2021-11-27T05:44:19.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T09:52:25.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letsdeepchat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-27T05:43:00.000Z","updated_at":"2021-11-27T05:44:21.000Z","dependencies_parsed_at":"2024-06-13T15:00:16.078Z","dependency_job_id":null,"html_url":"https://github.com/letsdeepchat/Way-Too-Long-Words","commit_stats":null,"previous_names":["letsdeepchat/way-too-long-words"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/letsdeepchat/Way-Too-Long-Words","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FWay-Too-Long-Words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FWay-Too-Long-Words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FWay-Too-Long-Words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FWay-Too-Long-Words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsdeepchat","download_url":"https://codeload.github.com/letsdeepchat/Way-Too-Long-Words/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FWay-Too-Long-Words/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-19T19:14:46.495Z","updated_at":"2026-01-18T09:01:39.398Z","avatar_url":"https://github.com/letsdeepchat.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Way-Too-Long-Words\nWay Too Long Words using JAVA solution\n\nSometimes some words like \"localization\" or \"internationalization\" are so long that writing them many times in one text is quite tiresome.\n\nLet us consider a word too long, if its length is strictly more than 10 characters. All too long words should be replaced with a special abbreviation.\n\nThis abbreviation is made like this: we write down the first and the last letter of a word and between them we write the number of letters between the first and the last letters. That number is in decimal system and does not contain any leading zeroes.\n\nThus, \"localization\" will be spelt as \"l10n\", and \"internationalization\" will be spelt as \"i18n\".\n\nYou are suggested to automatize the process of changing the words with abbreviations. At that all too long words should be replaced by the abbreviation and the words that are not too long should not undergo any changes.\n\nInput\nThe first line contains an integer n (1\u003c=n\u003c=100). Each of the following n lines contains one word. All the words consist of lowercase Latin letters and possess the lengths of from 1 to 100 characters.\n\nOutput\nPrint n lines. The i-th line should contain the result of replacing of the i-th word from the input data.\n\nExamples\nInput\n4\n\nword\n\nlocalization\n\ninternationalization\n\npneumonoultramicroscopicsilicovolcanoconiosis\n\nOutput\nword\n\nl10n\n\ni18n\n\np43s\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdeepchat%2Fway-too-long-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsdeepchat%2Fway-too-long-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdeepchat%2Fway-too-long-words/lists"}