{"id":17326025,"url":"https://github.com/lucasalegre/funk-generator","last_synced_at":"2025-07-17T12:35:27.317Z","repository":{"id":67709163,"uuid":"93105336","full_name":"LucasAlegre/funk-generator","owner":"LucasAlegre","description":"Earley Algorithm implementation to generate random brazilian funk music.","archived":false,"fork":false,"pushed_at":"2018-07-27T14:14:22.000Z","size":18871,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T06:51:58.975Z","etag":null,"topics":["earley-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Java","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/LucasAlegre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-06-01T22:40:12.000Z","updated_at":"2021-10-26T08:29:47.000Z","dependencies_parsed_at":"2023-03-14T04:00:18.525Z","dependency_job_id":null,"html_url":"https://github.com/LucasAlegre/funk-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LucasAlegre/funk-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasAlegre%2Ffunk-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasAlegre%2Ffunk-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasAlegre%2Ffunk-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasAlegre%2Ffunk-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasAlegre","download_url":"https://codeload.github.com/LucasAlegre/funk-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasAlegre%2Ffunk-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265606935,"owners_count":23797041,"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":["earley-algorithm"],"created_at":"2024-10-15T14:14:51.197Z","updated_at":"2025-07-17T12:35:27.311Z","avatar_url":"https://github.com/LucasAlegre.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FunkGenerator\n\nThis is a third semester university project in which we did a Funk Generator using the Earley algorithm.\n\nA parse implemantation using the Earley algorithm.\n\nIt is possible to check if a sentence is part of a given grammar and also to generate a random sentence of any grammar.\n\n## To run the project you have to do:\n\nRun the FunkGenerator.jar\n\nSelect a valid grammar on the txt format (FunkGrammar is the default).\n\nClick on \"Parse\" to parse the string in the textField or click on \"Generate Random\" to generate a random sentence.\n\nCheck \"Funk Mode\" option to use it to play a random funk music!\n\n*It is important to keep the \"batidao.mp3\" file in the same folder as the executable\n\nYou can also import it as a Java Project!\n\n## How the archive with your grammar has to be sent\n\n```\nTerminais        # comments are preceded by '#'\n[ the ]          # terminals section\n[ a ]\n[ an ]\n[ dog ]\n[ cat ]\n[ apple ]\n[ park ]\n[ in ]\n[ with ]\n[ ate ]\n[ chased ]\n[ liked ]\nVariaveis       # variables section\n[ S ]\n[ NP ]\n[ VP ]\n[ PP ]\n[ Det ]\n[ N ]\n[ P ]\n[ V ]\nInicial         # the initial variable (it must be only one)\n[ S ]\nRegras          # the rules of the grammar\n[ S ] \u003e [ NP ] [ VP ] \n[ NP ] \u003e [ Det ] [ N ] \n[ NP ] \u003e [ NP ] [ PP ] \n[ VP ] \u003e [ V ] \n[ VP ] \u003e [ V ] [ NP ]\n[ VP ] \u003e [ VP ] [ PP ] \n[ PP ] \u003e [ P ] [ NP ] \n[ Det ] \u003e [ the ]\n[ Det ] \u003e [ a ] \n[ Det ] \u003e [ an ] \n[ N ] \u003e [ dog ]\n[ N ] \u003e [ cat ] \n[ N ] \u003e [ apple bla bla ] \n[ N ] \u003e [ park ]\n[ P ] \u003e [ in ] \n[ P ] \u003e [ with ] \n[ V ] \u003e [ ate ] \n[ V ] \u003e [ chased ]\n[ V ] \u003e [ liked ]\n```\n\n## Authors:\n\n* **Lucas Alegre** https://github.com/LucasAlegre\n* **Catarina Nogueira** https://github.com/cvrnogueira\n* **Guilherme Haetinger** https://github.com/gujueno\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasalegre%2Ffunk-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasalegre%2Ffunk-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasalegre%2Ffunk-generator/lists"}