Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The longest sentence #18

Open
neoeno opened this issue Oct 21, 2014 · 2 comments
Open

The longest sentence #18

neoeno opened this issue Oct 21, 2014 · 2 comments

Comments

@neoeno
Copy link

neoeno commented Oct 21, 2014

Code.

Text.

Readme:

Hello. This is a piece of software that was written with the aim of creating
the longest grammatically valid sentence ever produced.

I think it worked. You can read the sentence here.

I'm going to spend a little more time and work making the sentence more detailed
and intricate.

Follow me at @neoeno maybe.

Quickstart

You'll need ruby, bundler.

$ bundle install
$ ruby go.rb

How it works

It parses a subset of a tagged version of the Brown corpus
and sorts every word into a bucket according to its type.

When that's done, you can give it a sentence structure to replicate. Currently,
it uses something like this:

['np', 'bedz', '@the', 'jjt', 'nn']
# Proper noun, was, the, superlative, singular/mass noun
# Brian was the biggest horse.

In this case, it uses a sentence stucture which can be extended to infinity, e.g.

Alpha was the highest sense of the hottest ton, the closest ebony of the
strongest possibility, the highest-paid fraternity of the youngest suit,
the best exhibit of the lowest keynote, the best meat of the worthiest
privilege, the closest opposition of the fastest selection, the fiercest
mantle of the richest appreciation [...]

Next

I want to broaden the sentence structures to include recursive structures, e.g.

Alpha, the dog who watched TV at the pub last thursday, was highest sense of
the hottest [...]

It's all infinite, but some infinites are more interesting than others...

@neoeno neoeno changed the title Gonna try again order to scramble of go to my again this year. The longest sentence Dec 1, 2014
@neoeno
Copy link
Author

neoeno commented Dec 1, 2014

Bumping this so maybe I'll get a complete label :)

@dariusk
Copy link
Owner

dariusk commented Dec 1, 2014

Whoops, there you go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants