W dniu 2013-01-14 09:39, Jaume Ortolà i Font pisze: > Hi Marcin, > > This is just a really minor point. When a use spacebefore="yes" in the > first token of a pattern, I have to write an extra rule for the case > this token is the first word of a sentence. So I'd prefer > always isWhitespaceBefore=TRUE in the first word. We can let it go for now.
If you do so, please add an appropriate JavaDoc and state it somewhere in the wiki. Marcin > > Jaume > > > 2013/1/13 Marcin Miłkowski <[email protected] <mailto:[email protected]>> > > W dniu 2013-01-13 13:05, Jaume Ortolà i Font pisze: > > Done. > > > > One more thing. The first word of a sentence (the first token after > > SENT_START) usually (always?) has isWhitespaceBefore=FALSE. Could > we set > > it to TRUE? That way I think I would have to write less grammar and > > disambiguation rules. > > Well, actually, I'm not sure, it's probably not set anywhere. But maybe > we could make it even more sensible: if there was no space or anything > like the hard return at the end of the previous sentence, then it should > have isWhitespaceBefore=false; otherwise "true". Though I don't see much > use for this right now, I admit. > > But I think this is more intuitive to make it correspond to the > preceding token even if it requires a bit more work. Unfortunately, in > LO it might be less sensible as the order of sentences sent to LT is not > guaranteed to be preserved (i.e., it may be quite different than in the > document). > > Best, > Marcin > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > > > > _______________________________________________ > Languagetool-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/languagetool-devel > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Languagetool-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/languagetool-devel
