From 6cc58881adbfe348ca129f4b78a6e3821e18b879 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 13 Jan 2013 09:08:05 +0100 Subject: [PATCH] comments --- src/rcldb/stemdb.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/rcldb/stemdb.h b/src/rcldb/stemdb.h index d5f4e986..43153605 100644 --- a/src/rcldb/stemdb.h +++ b/src/rcldb/stemdb.h @@ -55,11 +55,14 @@ #include #include "synfamily.h" -#include "unacpp.h" namespace Rcl { -/* A stemming functor for using with XapComputableSynFamMember */ +/* A stemming functor for using with XapComputableSynFamMember. + * We could perform the change to lowercase in there too, as stemdb keys + * must be lower case, but then the input conversion would be repeated for each + * stemming language, which would be inefficient. So we let our caller make sure + * that the input is lower-case */ class SynTermTransStem : public SynTermTrans { public: SynTermTransStem(const std::string& lang) @@ -87,7 +90,10 @@ public: { } - /** Expand for a number of languages */ + /** Expand for a number of languages + * @param langs space-separated set of languages + * @param term term to expand + */ bool stemExpand(const std::string& langs, const std::string& term, std::vector& result);