Giter Site home page Giter Site logo

ship-name-maker's Introduction

Ship Name Maker

Make ship names for you and your dependency :). (sadly I don't have a gf to test this program on, so it may be bugged)

Examples

Stacy & Lester

['Stales', 'Stater', 'Cyles', 'Cyter', 'Lessta', 'Lescy', 'Tersta', 'Tercy']

Felipe & Orlando

['Feor', 'Felan', 'Fedo', 'Lior', 'Lilan', 'Lido', 'Peor', 'Pelan', 'Pedo', 'Orfe', 'Orli', 'Orpe', 'Lanfe', 'Lanli', 'Lanpe', 'Dofe', 'Doli', 'Dope']

Terminal format

For brief viewing and gossiping at school, but you should save if you would like to revisit the ship

terminal format image

Saved format

It is the same as terminal format, but now you can print it out and hang it on the wall!

saved format image

API format

Returns a dictionairy with the keys "Full Names" and "Mixture Names"

API format image

How to run

  1. Clone this repository
  2. Cd into src
  3. Pip3 install the dependencies listed below
  4. python3 shipname.py
  5. Have fun!

Note: shipname.py uses lovecalculator.py, so if you want both shipnames and love calculations, you only need to run shipname.py

The api may not be 100% percent accurate, but then again, love can't be calculated in numbers...

Dependencies

  • Beautiful Soup 4 (Webscrape)
  • Requests (for bs4)
  • Re (for regular expression)
  • This Website (for syllable splitting)
  • Lovecalculator.com (for the love calculator scraping part)

How it works

The algorithem is quite simple.

  1. You take the names
  2. Split them into syllables using an online "api" (this program used web-scraping to get the data off the site)
  3. Do all combinations with both
  4. Return the data in a nicely formatted array :)

Extra thanks to @wiisportsresort for helping run some testcases

ship-name-maker's People

Contributors

mootbing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.