NationalityGuessing is a web application that predicts the likely nationality of a user based on their name. Utilizing the Nationalize.io API, the application evaluates the input name and returns possible countries of origin along with the probabilities for each. This project is built using the Spring Boot framework, Thymeleaf, Java with Maven for the backend, and HTML with CSS for the frontend.
Try it at: https://nationalityguessing.onrender.com
Demo_NationalityGuessing.mov
- User-friendly interface to input names.
- Utilizes the Nationalize.io API to guess nationalities based on names.
- Displays possible countries of origin with probabilities.
- Responsive design for desktop and mobile devices.
Before you begin, ensure you have met the following requirements:
- JDK 11 or newer.
- Maven for project dependency management.
To get a local copy up and running, follow these simple steps:
- Clone the repository:
git clone https://github.com/Hean-Chhinling/NationalityGuessing.git
- Navigate into the project directory:
cd NationalityGuessing
- Build the project with Maven:
mvn clean install
- Run the application:
mvn spring-boot:run
- Visit
http://localhost:8080
in your web browser to use the application.
- Simply enter your name in the provided input field on the homepage.
- Click on the "Guess Nationality" button.
- The application will display a list of possible nationalities along with the probability percentages.
Contributions to NationalityGuessing are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -am 'Add some feature'
. - Push to the original branch:
git push origin NationalityGuess/main
. - Create the pull request.
Alternatively, see the GitHub documentation on creating a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Nationalize.io API for providing the nationality guessing functionality.
- This project is built using the Spring Boot framework, Thymeleaf, Java, and Maven.