Git Product home page Git Product logo

Comments (6)

spencermountain avatar spencermountain commented on June 11, 2024

Hey Jared, believe that is already

.possessives().strip() - "Spencer's" -> "Spencer"

Cheers

from compromise.

MarketingPip avatar MarketingPip commented on June 11, 2024

Hey Jared, believe that is already

.possessives().strip() - "Spencer's" -> "Spencer"

Cheers

I think I might have phrased / wrote this issue wrongly.

When calling .people() on "George Lucas's Lucasfilm" it will return

 ["George Lucas's Lucasfilm"] 

when expected output should be

 ["George Lucas"] or  ["George Lucas's"]

Which there should be a rule for ALL people, so when people are tagged and tags look like this

George Lucas's film club
                      ^ stop tagger here
Spencers's awesome library
               ^ stop tagger here

As again - we as humans (as far as I know) do not ever pluralize / have possessive at the end of our names (indicating a stop / split for tagger). Which again should help tagging process so the next words ahead such as "Lucasfilm" can be properly tagged.

Hoping that made more sense & hoping you're having an awesome weekend. :cheers:

ps; look AT that compression issue you closed on me - still think I am onto something!

from compromise.

MarketingPip avatar MarketingPip commented on June 11, 2024

@spencermountain was trying to think of any names that this rule might not work with - unless Elon must spawns more kids I think it should would work. ๐Ÿ˜‚

ps: I want to add their names / weird names like those to people lexicon. But I got some cool stuff coming up for Compromise.js - plus a way better way for you to get data to populate other versions. Nouns, verbs etc - in the same format you like them / need them. ๐Ÿ‘Œ

from compromise.

spencermountain avatar spencermountain commented on June 11, 2024

ah, yeah of course.
yeah - George Lucas's Lucasfilm is definetly mis-tagged, and a .splitAfter a posessive would work great.
Oh man, I didn't know the .people() match logic was this bad. You're welcome to improve it.

I actually have been working on the same thing - i've added a couple hundred missing names on the dev branch, from a wikipedia analysis, which I think is similar to what you're doing.

I hope to get dev stable for a release this week. There are a few tests failing. If you make a pr before then, please do it off the dev branch. cheers

from compromise.

MarketingPip avatar MarketingPip commented on June 11, 2024

@spencermountain - will do! And that's exactly what I was looking for but not sure how to properly write that in tag rules. If you wanna drop a example for reference - feel free.

And jeez this looked like my half baked idea on determining names from locations.

Food for thought to - save yourself some time by using Wikidata via query! And at last resort - start making data pulls from Wikipedia (I was foolishly doing this before).

Tho I will make a gist with a preview on some basic tool I made for Compromise and see where you wanna shove it. I am hoping to package it as a separate library under MP & you can use it via import & build etc. As I was thinking it will be good for the library instead of a plugin - but that choice will be yours!

It ironically has to do with names too ie: Diminutives, check's if a human name is known as something else such as Steve / Steven. So I got you covered with lots of first names etc. Plus I got a huge DB of Hispanic names etc of inmates that I was planning on making a PR for to add to this and other versions of compromise. Just I have been waiting to slowly make PR's to not piss you off. lol

So look for that notification soon enough & drop me some CONTACT info soon enough lol ๐Ÿ‘

ps; apologizes - didn't mean to close on comment lol

from compromise.

spencermountain avatar spencermountain commented on June 11, 2024

this should be fixed in 14.10.1
cheers

from compromise.

Related Issues (20)

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.