Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25130
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Cannot manipulate array produced with string.match |
| Date | Sun, 29 Jun 2014 23:19:09 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 47 |
| Message-ID | <2459586.3RATVSoWxJ@PointedEars.de> (permalink) |
| References | <loj5qn$cof$1@dont-email.me> <lojfg6$i56$2@dont-email.me> <lokbfi$vac$1@dont-email.me> <lokfoe$q6k$1@dont-email.me> <lokjjc$o0v$1@dont-email.me> <loknef$inh$1@dont-email.me> <1892446.4VnW0yGc5p@PointedEars.de> <lopsmb$uvo$1@dont-email.me> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1404076756 6414 eJwFwYEBwCAIA7CXxLUFzgEd/59gwk+m4xAFDica6yza8cjQNl1wA12Zi5jKuRXgZY9+uT0DrRCD (29 Jun 2014 21:19:16 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 29 Jun 2014 21:19:16 +0000 (UTC) |
| User-Agent | KNode/4.12.4 |
| X-User-ID | eJwVwYkRwDAIA7CVwmNDxuEI7D9CrxKMwg4n6Fisic7dlszJDj5fdPJlwu/RKHBYfOLRNWnRMgeteuZX9QFJaxXW |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdC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8GCoHW3otQiy23nTfZxvZ5D01xYPDEqiVXEBxGwEKA= |
| Xref | csiph.com comp.lang.javascript:25130 |
Show key headers only | View raw
SteveYoungTbird wrote: > On 06/28/2014 11:53 PM, Thomas 'PointedEars' Lahn wrote: >> [5] /…(?= [A-Z])/g (zero-length positive lookahead) does not appear to >> make sense when you want to match/filter words. Why would you only >> match words that precede a word starting with a capital letter? >> What about multiple spaces, tabs, and newlines? > > I am trying to identify German adjectives in a text. I thought that if I > made an array of all the words that appeared before a noun (always > capitalized in German) and then removed definite and indefinite > articles, personal pronouns and other common words such as "von" etc I > could then check the remaining words against an array of German > adjectives. I would be grateful if someone could show me a better way. Neither are all words adjectives that precede a capitalized word (e.g „Morgen geht es /ums/ Ganze.“ [approx. “It’ll be do or die tomorrow.”]); nor, because of variable word order, do all adjectives precede a noun in German (e.g. „Das Spiel heute war /spannend/.“ vs. “Heute war ein spannendes Spiel.” [“Today’s match was exciting.”/“It/there was an exciting match today.”]). It is also insufficient to match only lowercase words because, although adjectives are usually written lowercase in German, too, proper names can contain capitalized adjectives (e.g. „Der /Fliegende/ Holländer“ [“The Flying Dutchman”], „Der /Elektrische/ Reporter“ [approx.: “The Electric Reporter”]), and nominalizations are common in German (often poetic or in an [recently, often misguided] attempt to avoid [seemingly] gender-specific forms, e.g. „der /Schlafende/“ [“the sleeper”], „die Studierenden“ [“the (university) students”]). Syntax analysis is far more complex that you think, particularly that of German. You appear to have an XY problem. >> Please post using your real name. > > Please don't think I'm being rude, but is your real name Thomas > 'PointedEars' Lahn? My real name is Thomas Lahn. It is customary, at least on the Net, to insert the nickname in the real name like I do. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 09:17 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-27 10:02 +0000
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 20:00 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-27 19:13 +0000
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 22:18 +0200
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 23:24 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-28 01:07 +0000
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-28 01:16 +0000
Re: Cannot manipulate array produced with string.match Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-28 23:53 +0200
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-29 22:24 +0200
Re: Cannot manipulate array produced with string.match Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-29 23:19 +0200
Re: Cannot manipulate array produced with string.match JJ <jj4public@vfemail.net> - 2014-06-27 19:31 +0700
csiph-web