spencermountain / compromise

modest natural-language processing
http://compromise.cool
MIT License
11.48k stars 653 forks source link

Not all prepositions are recognized as prepositions #858

Open brianfang1 opened 3 years ago

brianfang1 commented 3 years ago

Hello,

I have been working with prepositions and have noticed that not all prepositions are being flagged as #Preposition tags. I did some further testing and compiled a list of prepositions that I tested. This is based on a preposition list found on this website: https://www.englishclub.com/grammar/prepositions-list.htm

I am not sure if this is a mistake on my part or not but please do take a look at this. I believe some popular prepositions should definitely be tagged as prepositions such as 'above' and 'under'.

Here is the list(YES- Flagged as Preposition, NO- NOT flagged as preposition): aboard - NO about - YES above - NO across - YES after - YES against - NO along - YES amid - YES among - YES anti - NO around - YES as - YES at - YES before - NO behind - NO below - NO beneath - NO beside - NO besides - YES between - YES beyond - NO but - NO by - YES concerning - NO considering - NO despite - YES down - YES during - YES except - YES excepting - NO excluding - NO following - NO for - YES from - YES in - YES inside - NO into - YES like - NO minus - NO near - NO of - YES off - YES on - YES onto - YES opposite - NO outside - NO over - NO past - NO per - YES plus - NO regarding - NO round - NO save - NO since - YES than - YES through - YES to - NO toward - NO towards - YES under - NO underneath - NO unlike - YES until - YES up - YES upon - YES versus - NO via - YES with - YES within - YES without - YES

spencermountain commented 3 years ago

hey Brian, thanks for your help. It's possible there may be some prepositions missing - but sometimes the tagger looks for how these words are used in a sentence. I'd welcome any help to tag these words as Prepositions, when they act that way in a sentence. I find prepositions to be a complicated POS tag, and it's not always totally clear what it is. I can help, if you'd like to work together to improving this.

these should always be prepositions, i think

maybe adverb

maybe adjective

maybe verb

cheers