GithubHelp home page GithubHelp logo

igroupwords's Introduction

Why?

For several years now, my brain has been determined to torture me by conciously forcing me to solve small puzzles whenever my brain is temporarily unoccupied. These puzzles include but are not limited to: adding up all of the letters in a word (e.g a+b+c = 6), and organizing a word or sentence into two groups of equal length. I designed this project with the hope that having a computer to perform my impulsive calculations for me will ease my mind's unnecessary work, and may even eventually reverse the problem all together.

What It Does

iGroupWords uses text metrics in order to take a word or sentence, and organize it into two even groups of words or characters. By "even," I literally mean that the width in pixels of two groups of words or letters in a particular font are as close as possible. For instance, in the arial font, the letters abc are slightly wider than the letters lil, since l and i are less wide than the letters a, b, or c.

Entering a sentence containing more than two words will automatically trigger iGroupWords' word-by-word grouping, meaning that individual words will not be manipulated, but instead that words will be moved around between groups as a whole in order to make the two groups as even as possible.

Example

Entering the phrase "do you have gum" will result in the output of two groups, one "do have," and the other "you gum." This is an obvious example, because these two strings are the same amount of characters. Although this example is quite trivial to do in one's head, more complicated cases that make heavy use of text metrics can also be solved by iGroupWords.

Example iGroupWords Screenshot

igroupwords's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

5l1v3r1

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.