Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Spellchecking POD and features.

  • Loading branch information...
commit 483c746c13a0504693e6c3d1db8ee1dfb285c531 1 parent 28ea06a
Cory Watson authored
View
3  Changes
@@ -1,5 +1,8 @@
Revision history for Data-SearchEngine
+0.16
+ * Add spelled_correctly attribute to Spellcheck role
+
0.15
* Make query rw
View
2  lib/Data/SearchEngine.pm
@@ -1,7 +1,7 @@
package Data::SearchEngine;
use Moose::Role;
-our $VERSION = '0.15';
+our $VERSION = '0.16';
requires qw(search);
View
9 lib/Data/SearchEngine/Results/Spellcheck.pm
@@ -30,6 +30,11 @@ has spell_suggestions => (
}
);
+has spelled_correctly => (
+ is => 'rw',
+ isa => 'Bool',
+);
+
1;
__END__
@@ -76,6 +81,10 @@ HashRef of spellcheck suggestions for this query. The HashRef is keyed by the
word for which spellcheck suggestions are being provided and the values are
the suggestions.
+=head2 spelled_correctly
+
+Boolean value to signal to the front end if the query was spelled correctly.
+
=head1 METHODS
=head2 get_spell_frequency ($word)
Please sign in to comment.
Something went wrong with that request. Please try again.