Getty Images
Getty Images

This Computer Program Can Write Its Own Rap Lyrics

Getty Images
Getty Images

Plenty of rappers have claimed that they’re the best alive. But now they’ve got some competition—from a computer program.

A team of Finnish computer scientists has developed a machine-learning algorithm, dubbed “DeepBeat,” which has “learned” how to rap by analyzing the rhymes present in approximately 10,000 songs by more than 100 artists.

When it came to creating the program, the scientists chose to focus exclusively on a type of linguistic device known as an assonance rhyme—which, unlike a “perfect rhyme,” only requires that the words in question repeat vowel sounds—because of their prevalence in rap music.

Once DeepBeat figured out how to pick out assonance rhymes, it could be programmed to choose subsequent lines to match. (Eighty-two percent of the time, it successfully picked the line that actually follows in the song it had mined.) But it could also be instructed to search through its database for a verse that fits a given line’s rhyme structure and is about the same topic.

DeepBeat put together this romantic tune using rhyming lines from a variety of different hits:

For a chance at romance I would love to enhance
But everything I love has turned to a tedious task
One day we gonna have to leave our love in the past
I love my fans but no one ever puts a grasp
I love you momma I love my momma – I love you momma
And I would love to have a thing like you on my team you take care
I love it when it’s sunny Sonny girl you could be my Cher
I’m in a love affair I can’t share it ain’t fair
Haha I’m just playin’ ladies you know I love you.
I know my love is true and I know you love me too
Girl I’m down for whatever cause my love is true
This one goes to my man old dirty one love we be swigging brew
My brother I love you Be encouraged man And just know
When you done let me know cause my love make you be like WHOA
If I can’t do it for the love then do it I won’t
All I know is I love you too much to walk away though

The verses it produces are occasionally incoherent, but the Massachusetts Institute of Technology's Technology Review notes that DeepBeat’s rhymes are significantly more complex than those produced by human rappers, who are outperformed “in terms of length and frequency of the rhymes,” the researchers write, “21 percent of the time.”

The programmers have also used DeepBeat to rank the rhyming skills of the rappers whose work their algorithm has studied. Inspector Deck, Rakim, and Redrama came out on top; Eminem, on the other hand, didn’t fare so well. But according to Technology Review, “That’s probably because Eminem often achieves his rhymes by ‘bending’ words, a trick that this technique does not allow for.”

The team has yet to teach DeepBeat to consistently produce flows containing coherent narratives, which means Jay Z, Marshall Mathers, and Lil Wayne's legacies are safe. For now.

[h/t Technology Review

IBM Unveils the World's Smallest Computer

The latest piece of technology to be zapped by the shrink ray of progress was recently revealed during IBM Think 2018, the computer giant’s conference that offers a sneak preview of its latest hardware. According to Mashable, IBM’s newest computer is so small that it could disappear inside a salt shaker.

An IBM computer on a motherboard and atop a pile of salt

That tiny black speck on the right? That’s the one. (It's mounted to a motherboard on the upper left of the left photo.) IBM claims the computer has several thousand transistors and has roughly the same kind of operating power as a processor from 1990. While that may not sound impressive, any kind of artificial intelligence in a product that small could have big implications for data management. IBM believes it has a future in blockchain applications, which track shipments, theft, and non-compliance. Its tiny stature means it can be embedded into materials discreetly.

As an example, IBM noted that the processor could be injected into a non-toxic magnetic ink, which can then be stamped on a prescription drug. One drop of water could make the ink visible, letting someone know it’s authentic and safe to take.

The tiny little motherboard and its processors are still in the prototype stages, but IBM predicts it could cost less than 10 cents to manufacture. The company hopes it will be commercially available in the next 18 months.

[h/t Mashable]

Apple Wants to Patent a Keyboard You’re Allowed to Spill Coffee On

In the future, eating and drinking near your computer keyboard might not be such a dangerous game. On March 8, Apple filed a patent application for a keyboard designed to prevent liquids, crumbs, dust, and other “contaminants” from getting inside, Dezeen reports.

Apple has previously filed several patents—including one announced on March 15—surrounding the idea of a keyless keyboard that would work more like a trackpad or a touchscreen, using force-sensitive technology instead of mechanical keys. The new anti-crumb keyboard patent that Apple filed, however, doesn't get into the specifics of how the anti-contamination keyboard would work. It isn’t a patent for a specific product the company is going to debut anytime soon, necessarily, but a patent for a future product the company hopes to develop. So it’s hard to say how this extra-clean keyboard might work—possibly because Apple hasn’t fully figured that out yet. It’s just trying to lay down the legal groundwork for it.

Here’s how the patent describes the techniques the company might use in an anti-contaminant keyboard:

"These mechanisms may include membranes or gaskets that block contaminant ingress, structures such as brushes, wipers, or flaps that block gaps around key caps; funnels, skirts, bands, or other guard structures coupled to key caps that block contaminant ingress into and/or direct containments away from areas under the key caps; bellows that blast contaminants with forced gas out from around the key caps, into cavities in a substrate of the keyboard, and so on; and/or various active or passive mechanisms that drive containments away from the keyboard and/or prevent and/or alleviate containment ingress into and/or through the keyboard."

Thanks to a change in copyright law in 2011, the U.S. now gives ownership of an idea to the person who first files for a patent, not the person with the first working prototype. Apple is especially dogged about applying for patents, filing plenty of patents each year that never amount to much.

Still, they do reveal what the company is focusing on, like foldable phones (the subject of multiple patents in recent years) and even pizza boxes for its corporate cafeteria. Filing a lot of patents allows companies like Apple to claim the rights to intellectual property for technology the company is working on, even when there's no specific invention yet.

As The New York Times explained in 2012, “patent applications often try to encompass every potential aspect of a new technology,” rather than a specific approach. (This allows brands to sue competitors if they come out with something similar, as Apple has done with Samsung, HTC, and other companies over designs the company views as ripping off iPhone technology.)

That means it could be a while before we see a coffee-proof keyboard from Apple, if the company comes out with one at all. But we can dream.

[h/t Dezeen]


More from mental floss studios